Loading...
代码#lambda 简化函数表达式 #定义一个函数,返回True def func(): return True #使用lambda的写法 l...
代码#iter next # list = [1, 2, 3] # it = iter(list) # print(next(it)) # print(...
代码var = 123 def func(): var = 456 print(var) func() print(var)运行定义全局...
代码# * 后面的参数可以不输入,也可以输入多个 def howlong(first, *other): print( 1 + len(othe...
代码import re def find_item( hero ): with open('sanguo.txt',encoding='GB180...