随笔分类 -  作业

每次作业
摘要:1 ''' 2 1、使用while循环输入 1 2 3 4 5 6 8 9 10 3 4 2、求1-100的所有数的和 5 6 3、输出 1-100 内的所有奇数 7 8 4、输出 1-100 内的所有偶数 9 10 5、求1-2+3-4+5 ... 99的所有数的和 11 12 6、用户登陆(三次机会重试) 13 ''' 14 #1、使用while循环输入 ... 阅读全文
posted @ 2018-05-10 23:26 yuyou123 阅读(106) 评论(0) 推荐(0)
摘要:1 import time 2 status_dic = { 3 'username': None, 4 'status': False, 5 } 6 7 flag1 = True 8 9 def login(*args,**kwargs): 10 i = 0 11 while i < 3: 12 us... 阅读全文
posted @ 2018-05-10 23:25 yuyou123 阅读(124) 评论(0) 推荐(0)
摘要:1 def read_file(): 2 '''读文件''' 3 with open('userinfo','r') as f: 4 for line in f: 5 line_lst = line.strip().split(',') # ['1','Alex','22','13651054608 阅读全文
posted @ 2018-05-10 23:21 yuyou123 阅读(131) 评论(0) 推荐(0)