标签:for 你好 sort 退出 nbsp bsp 内置函数 span 一起
# print(max(range(1,28))) # print(min(range(28))) # print(sum(range(1,101))) msg = ‘hello‘ # print(dir(msg)) # res = sorted([2,3,1,2,3],reverse=True) #加上reverse就是降序排列了 # print(res) # res = eval(‘[1,2,3,4,5]‘)#执行python代码,只能执行简单的python代码,1+1 a=1 # exec()# # print(res) # f = open(‘code‘,encoding=‘utf-8‘) # code = f.read() # exec(code)#执行python代码的 # for i in range(len(stus)): # print(i,stus[i]) # for index,s in enumerate(stus): # print(index,s) # msgs = [ ‘登录‘,‘注册‘,‘退出‘ ] # kkk=‘你好啊‘ # for index,msg in enumerate(kkk,1): # print(index,msg) # print(‘请输入你的选择:‘) # 0 雷振华 # 1 胡婷 # 2 商洁 # 3 涛涛 stus = [‘雷振华‘,‘胡婷‘,‘商洁‘,‘涛涛‘] sex = [‘男‘,‘女‘,‘女‘,‘男‘] age = [1,2] for name,se,ag in zip(stus,sex,age): #多个list压缩到一起 print(name,se,ag)
标签:for 你好 sort 退出 nbsp bsp 内置函数 span 一起
原文地址:https://www.cnblogs.com/Noul/p/9278718.html