05 2018 档案

摘要:fr = open ('red.txt',mode='r',encoding='utf-8') red = fr.read() print('明文:'+ red) print('密文:',end='') fr.close() fw = open('blue.txt',mode ='a',encoding='utf-8') for c in red: print(chr(ord(c)+3... 阅读全文
posted @ 2018-05-30 21:38 三米巨人 阅读(132) 评论(0) 推荐(0)
摘要:stuNum = '201709090060' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) IDNo= '440509199906180026' print('省市是:'+IDNo[0:2]) print('生日是:'+IDNo[-8:-4]) print('性别是:'+IDNo... 阅读全文
posted @ 2018-05-23 21:15 三米巨人 阅读(137) 评论(0) 推荐(0)
摘要:stuNum = '201709090060' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) IDNo= '440509199906180026' print('省市是:'+IDNo[0 阅读全文
posted @ 2018-05-23 19:44 三米巨人 阅读(110) 评论(0) 推荐(0)
摘要:import turtle turtle.setup(600,400,0,0) turtle.bgcolor('red') turtle.color('yellow') turtle.fillcolor('yellow') def mygoto(x,y): turtle.penup() turtle 阅读全文
posted @ 2018-05-16 20:23 三米巨人 阅读(115) 评论(0) 推荐(0)
摘要:import turtle turtle.pencolor('blue') turtle.fillcolor('red') turtle.begin_fill() while True: turtle.forward(100) turtle.right(50) if abs(turtle.position())<1: break turtle.end... 阅读全文
posted @ 2018-05-09 21:17 三米巨人 阅读(255) 评论(0) 推荐(0)
摘要:import turtle turtle.fillcolor('pink') turtle.begin_fill() turtle.circle(40) turtle.end_fill() turtle.up() turtle.goto(0,-40) turtle.down() turtle.fillcolor('yellow') turtle.begin_fill() turtle.cir... 阅读全文
posted @ 2018-05-02 21:18 三米巨人 阅读(134) 评论(0) 推荐(0)