05 2022 档案

摘要:task3 def is_valid(x): if len(x)!=18: return False else: if x.isdecimal(): return True elif x.find('X')and x.strip('X').isdecimal(): return True else: 阅读全文
posted @ 2022-05-25 13:21 周易潇 阅读(12) 评论(2) 推荐(0) 编辑
摘要:task3 with open('C:/Users/dell/Desktop/实验5数据文件/data3.txt','r+',encoding='utf_8')as f: a=[] b=[] for line in f.readline(): line=line.strip('\n') a.appe 阅读全文
posted @ 2022-05-16 21:27 周易潇 阅读(42) 评论(2) 推荐(0) 编辑
摘要:实验任务1 print(sum) sum=42 print(sum) def inc(n): sum=n+1 print(sum) return sum sum=inc(7)+inc(7) print(sum) Q:不是 line1:line1之前 line2:line2-3 line7:line6 阅读全文
posted @ 2022-05-11 15:26 周易潇 阅读(14) 评论(2) 推荐(0) 编辑