摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
stuNum = '201709090032' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:8]) print('序号是:'+stuNum[-3:]) IDNum='440902199909280026' print('广东省区编号是:'+IDNum[0:4]) print('茂名市编号是:'+IDNum[4:6]) print... 阅读全文
摘要:
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(... 阅读全文
摘要:
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) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文