摘要:
常用函数 abs() 绝对值 all()Return True if bool(x) is True for all values x in the iterable. If the iterable is empty, return True any()Return True if bool(x) is True for any x in the iterable. I... 阅读全文
摘要:
作用域 例1、 def test1(): print('in the test1') def test(): print('in the test') return test1() res = test() print(res) >>> in the test in the test1 None 例2、 ... 阅读全文
摘要:
# count = 0 # for i in range(1, 9): # for v in range(1, 9): # if i != v: # count += 1 # print(count) #####print('',sep=,end=) sep 分割符 # 九九乘法表 # 法1 # for i in range(1, 10): # ... 阅读全文