Python: Medium variable named I, final print result is l=8 because L is pointing to 8 not I
I=8i= ' l ' i=12print (L)
Support for Chinese in version 3.0
_username = "FZ" _password = "fz123" username =input ("username:") password =input ("Password:") if Username==_username and _ password== Password: print ("Welcome {name} login ...". Format (Name=_username)) Else: print ("You're Wrong")
Judge
Age=56conut=0while conut<3: _age = int (Input ("_age:")) if _age==age: print ("you entered correct") break Elif _age<age: print ("You entered the small") else: print ("You entered the Big") conut+=1 If conut==3: Whether you need to continue entering = Input ("Whether you need to continue entering:") If you need to continue typing! = ' N ': conut=0print ("Bye")
Connector characters
Name=input ("Name:") age=int (Input ("Age:")), print (type (age)) Job=input ("Job:") salary=input ("salary") onif= "name=% sage=%djob=%ssalary=%s "% (name,age,job,salary) print (onif)
Pycharm Python first week