摘要: Abstract The aim of this report is to describe my internship experience at XingHaiMingCheng neighborhood committee. I worked here as a clerk for five 阅读全文
posted @ 2019-05-12 13:44 HaoVlikeyou 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #1. adcFile = open('adc.txt',mode="r",encoding='utf-8') adcText = adcFile.read() adcFile.close() print(adcText) #2. replaceList = [',','.',"'",'\n'] for c in replaceList: adcText = adcText.repla... 阅读全文
posted @ 2018-06-20 20:32 HaoVlikeyou 阅读(141) 评论(0) 推荐(0) 编辑
摘要: def hanoi(n,a,b,c): if n==1: print(n,a+'->'+c) else: hanoi(n-1,a,c,b) print(n,a+'->'+c) hanoi(n-1,b,a,c) hanoi(7,'A','B','C') 阅读全文
posted @ 2018-06-13 21:00 HaoVlikeyou 阅读(69) 评论(0) 推荐(0) 编辑
摘要: l=['Harvey','Tracy','Sam'] t={'Harvey','Tracy','Sam'} l.append('Tracy') print(l) scores=[68,76,88] d={'Harvey':68,'Tracy':76,'Sam':88} d['Tracy']=99 d 阅读全文
posted @ 2018-06-06 21:33 HaoVlikeyou 阅读(115) 评论(0) 推荐(0) 编辑
摘要: fr = open('cena.txt',mode='r',encoding='utf-8') qcj = fr.read() print('明文:'+qcj) print('密文:',end='') fw = open('cena.txt',mode='a',encoding='utf-8') for c in qcj: print(chr(ord(c)+3),end='') ... 阅读全文
posted @ 2018-05-30 21:16 HaoVlikeyou 阅读(84) 评论(0) 推荐(0) 编辑
摘要: stuNum = '201709080010' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:8]) print('序号是:'+stuNum[-3:]) print(chr(9800)) for i in range(12): print(9800+i,chr(9800+i)) plainText = input('me... 阅读全文
posted @ 2018-05-23 21:11 HaoVlikeyou 阅读(647) 评论(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.goto(x,y) turtle.pendown() mygoto(... 阅读全文
posted @ 2018-05-16 20:35 HaoVlikeyou 阅读(130) 评论(0) 推荐(0) 编辑
摘要: import turtle 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,110) ... 阅读全文
posted @ 2018-05-07 16:56 HaoVlikeyou 阅读(236) 评论(0) 推荐(1) 编辑
摘要: number = 23 while True: guess = int(input('请输入一个数字:')) if guess > number: print('>') elif guess >> turtle.circle(120) >>> turtle.up() >>> turtle.goto(0,30) >>> turtle.down() >>> ... 阅读全文
posted @ 2018-05-07 16:42 HaoVlikeyou 阅读(108) 评论(0) 推荐(0) 编辑
摘要: while True: a = int(input('摄氏温度换为华氏温度请按 1\n华氏温度转为摄氏温度请按 2\n退出请按 3\n')) if a==1: c = float(input('请输入摄氏温度:')) f = (c)*9/5+32 print('摄氏{:.2f}温度转为华氏温度是{: 阅读全文
posted @ 2018-04-28 23:59 HaoVlikeyou 阅读(388) 评论(0) 推荐(0) 编辑