05 2018 档案
摘要:fr = open('jay.txt',mode='r',encoding='utf-8') jay = fr.read() print('明文:'+jay) print('密文:',end='') fr.close() fw = open('hannah.txt',mode='a',encoding='utf-8') for c in jay: print(chr(ord(c)+3...
阅读全文
摘要:stuNum = '201709090049' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) IDNo= '440301199808130621' print('省市是:'+IDNo[0:2]) print('生日是:'+IDNo[-8:-4]) print('性别是:'+IDNo...
阅读全文
摘要:stuNum = '201709090049' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) IDNo= '440301199808130621' print('省市是:'+IDNo[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
阅读全文
摘要:import turtle turtle.pencolor('red') turtle.fillcolor('yellow') turtle.begin_fill() while True: turtle.forward(100) turtle.right(49) if abs(turtle.position())<1: break turtle.en...
阅读全文
摘要:input('start') myNumber = 7 while True: guess = int(input()) if guess > myNumber: print('>') elif guess < myNumber: print ('<') else: print('') break ...
阅读全文