摘要: bigFile = open('one of us.txt','r') bigText = bigFile.read() bigFile.close() print(bigText) replaceList = [',',"'",'?','\n'] for c in replaceList: bigText = bigText.replace(c,' ') print(bigText... 阅读全文
posted @ 2018-06-11 16:57 世界第一稳 阅读(96) 评论(0) 推荐(0) 编辑
摘要: fr = open('plainText.txt',mode='r',encoding='utf-8') plainText = fr.read() print(plainText) print('密文:',end='') for c in plainText: print(chr(ord(c)+3),end='') fw =open('cipherText.txt',mod... 阅读全文
posted @ 2018-05-28 16:50 世界第一稳 阅读(85) 评论(0) 推荐(0) 编辑
摘要: stuNum = '201709090032' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:8]) print('序号是:'+stuNum[-3:]) IDNum='440902199909280026' print('广东省区编号是:'+IDNum[0:4]) print('茂名市编号是:'+IDNum[4:6]) print... 阅读全文
posted @ 2018-05-21 16:05 世界第一稳 阅读(90) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.color('red') turtle.fillcolor('blue') turtle.begin_fill() turtle.forward(100) turtle.right(430) if abs(turtle.pos())<1: break turtle.end_fill() turtle.done(... 阅读全文
posted @ 2018-05-14 16:45 世界第一稳 阅读(201) 评论(0) 推荐(0) 编辑
摘要: turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144 阅读全文
posted @ 2018-05-07 17:04 世界第一稳 阅读(172) 评论(0) 推荐(0) 编辑
摘要: turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) 阅读全文
posted @ 2018-05-07 17:02 世界第一稳 阅读(126) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(100) turtle.up() turtle.goto(0,50) turtle.down() turtle.circle(50) turtle.up() turtle.goto(0,-50) turtle.down() turtle.circle(150) turtle.up() turtle.goto(0,-100) tu... 阅读全文
posted @ 2018-05-07 15:47 世界第一稳 阅读(560) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(100) turtle.up() turtle.goto(0,50) turtle.down() turtle.circle(50) turtle.up() turtle.goto(0,-50) turtle.down() turtle.cir 阅读全文
posted @ 2018-05-07 15:40 世界第一稳 阅读(261) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.penup() turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) turtle.fillcolor("red") turtle.begin_fill() turtle.circle(10, 180) turtle.circle(25, 1... 阅读全文
posted @ 2018-05-07 15:39 世界第一稳 阅读(122) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(100) turtle.up() turtle.goto(0,50) turtle.down() turtle.circle(50) turtle.up() turtle.goto(0,-50) turtle.down() turtle.circle(150) turtle.up() turtle.goto(0,-100) tu... 阅读全文
posted @ 2018-04-28 16:57 世界第一稳 阅读(96) 评论(0) 推荐(0) 编辑