摘要:
# 第一步:导入模块 from collections import Iterable # import collections # isinstance(数据,Iterable) print(isinstance([], Iterable)) print(isinstance((), Iterab 阅读全文
posted @ 2021-12-19 18:49
不带行李去旅游啊
阅读(61)
评论(0)
推荐(0)
摘要:
# 匿名函数 # 需求:求两个数的和 def total(num1, num2): return num1 + num2 print(total(10, 20)) # 注意:匿名函数本质是一个表达式,并没有名字,想要被调用,只能赋值给一个变量,然后使用这个变量调用函数【变量当做函数名使用】 resu 阅读全文
posted @ 2021-12-19 18:02
不带行李去旅游啊
阅读(42)
评论(0)
推荐(0)
浙公网安备 33010602011771号