摘要: #1. geciFile = open('geci.txt',mode="r",encoding='utf-8') geciText = geciFile.read() geciFile.close() print(geciText) #2. replaceList = [',','.',"'",'\n'] for c in replaceList: geciText = gec... 阅读全文
posted @ 2018-06-18 14:26 Kaeo 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-04 16:04 Kaeo 阅读(110) 评论(0) 推荐(0) 编辑
摘要: fr = open('kaeo.txt',mode='r',encoding='utf-8') plainText = fr.read() print('明文:'+plainText) print('密文:',end='') for c in plainText: print(chr(ord(c)+2),end='') 阅读全文
posted @ 2018-05-28 16:16 Kaeo 阅读(90) 评论(0) 推荐(0) 编辑
摘要: stuNum = '201709080042' print('年级是:'+stuNum[0:4]) print('专业编号是: '+stuNum[4:9]) print('序号是: '+stuNum[-4:]) stuNum = '440103199909083352' print('所在省市:'+stuNum[0:2]) print('所在地区:'+stuNum[2:4]) print(... 阅读全文
posted @ 2018-05-21 16:08 Kaeo 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-14 15:12 Kaeo 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-14 15:07 Kaeo 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-23 15:52 Kaeo 阅读(254) 评论(0) 推荐(0) 编辑
摘要: name1=input('请输入一个名字') name2=input('再输入一个名字') vehicle=input('请输入一种车子') print('\n刚去完秋名山{}刚下山,就有{}儿子带着自己等璀璨{}开走了\n\n'.formal(name1,name2,vehicle) input('press amt ket...') 阅读全文
posted @ 2018-04-16 16:19 Kaeo 阅读(180) 评论(0) 推荐(0) 编辑