摘要:每日测验 """ 1.下面这段代码的输出结果是什么,并给出你的解释 def index(): return [lambda x : i * x for i in range(4)] print([m(2) for m in index()]) 2.什么是函数的递归调用?书写递归函数需要注意什么?你能
阅读全文
摘要:每日测验 """ 今日考题 1.列举你所知道的PEP8 Python编码规范 2.求结果(易错题) v1 = 1 or 3 v2 = 1 and 3 v3 = 0 and 2 and 1 v4 = 0 and 2 or 1 v5 = 0 and 2 or 1 or 4 v6 = 0 or Flase
阅读全文