while True : x = input('输入q退出:') if x == 'q': break print(&...
for x in 'abc': print(x) #a #b #c print('##################################') #&nb...
if 1==1: print('a') #一定要有缩进,否则会出现错误 print('b') print('c') #a #b #c print(...
#定义字典 dic = {'a':'aaaa', 'b':'bbbb'} print(type(dic)) print(dic[...
# 定义空的list list1 = [] print(type(list1)) #<class 'list'> print(list1) #...
a = 'abcedf' # 求序列长度 print(len(a)) #6 # 重复序列元素 print(a*5) #abcdeabcdeabc...
# 字符串 str1 = 'hehe' print(str1) #hehe str2 = "呵呵" print(str2)#呵呵 st...
num1 = int(input("num1:")) # 获取输入的字符,低级版本用raw_input() num2 = int(input('n...
# 加 print(3 + 2) # 5 # 减 print(3 - 2) # 1 # 乘 print(3&nb...
print('Hello World') #Hello World # 定义变量 a = 1 b = 2 print(a+b);&n...
阅读: 20059
阅读: 17195 评论:1
阅读: 16368
阅读: 16347
阅读: 15750
阅读: 15521
扫扫关注微信