DetoX Posted February 23, 2010 Report Posted February 23, 2010 Salutare. Cum pot introduce un text de la tastatura in Python?Mersi anticipat Quote
cmiN Posted February 23, 2010 Report Posted February 23, 2010 3.xx = input("Introdu ceva: ")=> type(x) -> class "str"2.xx = raw_input("Introdu ceva: ")Are acelasi efect ca la versiunea 3.x, numai ca raw_input() difera de input().raw_input() == str(input())input() == eval(raw_input()) -> evalueaza input-ul vazut ca codLa versiunea 3.x nu mai exista raw_input(), e doar input() care returneaza un string. Quote