import keyword print(keyword.kwlist)
[‘False‘, ‘None‘, ‘True‘, ‘and‘, ‘as‘, ‘assert‘, ‘break‘, ‘class‘, ‘continue‘, ‘def‘, ‘del‘, ‘elif‘, ‘else‘, ‘except‘, ‘finally‘, ‘for‘, ‘from‘, ‘global‘, ‘if‘, ‘import‘, ‘in‘, ‘is‘, ‘lambda‘, ‘nonlocal‘, ‘not‘, ‘or‘, ‘pass‘, ‘raise‘, ‘return‘, ‘try‘, ‘while‘, ‘with‘, ‘yield‘]
mystr = input("请输入数据") print(mystr)
import os cmd = input("cmd:") os.system(cmd)
name=‘yasepix‘ print(type(name)) print(id(name))
num=111 print(type(num)) num=11111111111111111111111111111111111111111111111 print(type(num)) 结果为: <class ‘int‘> <class ‘int‘>