06 2021 档案
摘要:list1 = [] board = ['张三', '李小四', '王二麻子'] while 1: dic = {'uesername': '', 'password': ''} # 每次循环都要新定义,否则前面的字典会被刷新 user = input('请输入用户名(如果想退出则输入Q或q):')
阅读全文
摘要:# n_and_p = [{'dog1':'123'},{'dog2':'234'},{'dog3':'345'},{'dog4':'456'},{'dog5':'567'},{'dog6':'678'},{'dog7':'789'},] # with open('E:/dog.txt',mode=
阅读全文
摘要:文件操作方法: 读 >r,rb r+(常用) 写 >w,wb w+ f = open('E:/模特主妇护士班主任.txt',mode='r',encoding='utf-8') content = f.read() print(content) f.close() # f = open('模特主妇护
阅读全文
摘要:def listshow(li): list1 = [] for i in li: if type(i) == list: for j in i: list1.append(j) else: list1.append(i) return list1 li = [1,2,3,5,'alex',[2,3
阅读全文

浙公网安备 33010602011771号