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]!= 阅读全文
posted @ 2022-05-23 18:24 张杰的 阅读(60) 评论(3) 推荐(0)
摘要: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=['四舍五入后数据 阅读全文
posted @ 2022-05-14 16:21 张杰的 阅读(51) 评论(2) 推荐(0)
摘要: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 阅读全文
posted @ 2022-05-10 13:03 张杰的 阅读(50) 评论(3) 推荐(0)