05 2022 档案
摘要:def is_valid(x): if len(str(x[3:]))!=18: return False elif len(str(x[3:]))==18 and x[3:].isdigit(): return True else: if x[3:-1].isdigit() and x[-1]!=
阅读全文
摘要:with open('data3.txt','r',encoding='utf-8') as f: data=f.readlines() f.close() with open('data3_proxessed.txt','w',encoding='utf-8') as b: a=['四舍五入后数据
阅读全文
摘要:print(sum) sum=42 print(sum) def inc(n): sum=n+1 print(sum) return sum sum=inc(7)+inc(7) print(sum) 不是 1:内置 2:全局 3:局部 4:全局 list1=[1,9,8,4] print(sorte
阅读全文

浙公网安备 33010602011771号