-
-
-
-
-
-
-
-
-
-
-
-
sr1="""wfndkafajd"""
-
-
-
-
-
-
import keyword
-
print(keyword.kwlist)
-
-
>>>print(‘Hell,Word!’)
-
>>>print('aa\nbb') aa 换行 bb
-
-
-
>>>print(‘Hell‘,’Word!’)
-
-
>>>print(‘Hell‘ ’Word!’)
-
-
>>> a="str"
>>> print(a)
str
-
-
-
-
-
-
-
>>> input("please input your choice:")
-
please input your choice:1
-
-
>>> choice=input("please input")
-
please input123
-
>>> print(choice)
-
-
>>> choice
-
-
-
>>> print("age:"+10)
-
Traceback (most recent call last):
-
File "<stdin>", line 1, in <module>
-
TypeError: must be str, not int
-
>>>
-
-
-
>>> print("age:",10)
-
age: 10
-
-
>>> age=10
-
>>> print("age:",age)
-
age: 10
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
print(rest)
-
-
str01="//n"
-
-
str02="%%%s"
-
-
-
-
-
-
-
-
true 1
-
false 0
-
-
a +=1 ==> a=a+1
-
-
if "ac" not in "abc":
-
print(1);
-
-
-