摘要: name1 = 'Michael' name2 = 'Bob' classmates = ['Michael','Bob','Tracy',12] classmates.append('Rose') classmates.insert(1,'Jack') classmates.pop() classmates.pop(4) classmates[0] = 'Rose' print(len(cl... 阅读全文
posted @ 2018-05-28 16:57 qwertyuiopasdf 阅读(412) 评论(0) 推荐(0) 编辑
摘要: fr = open('plainText.txt',mode='r',encoding='utf-8') plainText = fr.read() print('明文:'+plainText) print('密文:',end='') fw = open('cipherText.txt',mode='a',encoding='utf-8') for c in plainText : ... 阅读全文
posted @ 2018-05-28 16:13 qwertyuiopasdf 阅读(408) 评论(0) 推荐(0) 编辑