2022年6月26日
摘要: 1. 输入/格式化输出: help('FORMATTING') 可以查看各类的不同要求 each = input("pls input each value\n") print('each value is {}'.format(each)) count = input("pls input the 阅读全文
posted @ 2022-06-26 22:32 学海一扁舟 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1.一等函数: 运行时候创建, 可以给变量赋值; 也可以作为函数的返回结果; def factorial(n): """ return n """ return 1 if n<2 else n*factorial(n-1) fact = factorial print(fact(20)) def m 阅读全文
posted @ 2022-06-26 22:32 学海一扁舟 阅读(23) 评论(0) 推荐(0) 编辑