摘要: 锘縏he club isn't the best place to find a loverSo the bar is where I goMe and my friends at the table doing shotsDrinking faster and then we talk slowY 阅读全文
posted @ 2018-06-11 16:41 katherine9 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.speed(10) colors=['#A020F0','#87CEFF','#8B2500','#B0E2FF','#4B0082','#E0FFFF','#8B8989'] for i in range(200): turtle.pencolor(colors[i%7]) turtle.forward(i) turtl... 阅读全文
posted @ 2018-06-04 15:20 katherine9 阅读(119) 评论(0) 推荐(0) 编辑
摘要: fr =open('plainText.txt',mode='r',encoding='utf-8') plainText=fr.read() print('明文:'+plainText) print('密文:',end='') fw =open('dearText.txt',mode='a',encoding='utf-8') for c in plainText: print(chr... 阅读全文
posted @ 2018-05-28 15:53 katherine9 阅读(98) 评论(0) 推荐(0) 编辑
摘要: stuNum='201709080065' print('年级是:'+stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) stuNum='440583199904241968' print('广东省:'+stuNum[0:4]) print('汕头市:'+stuNum[4:6]) print('生日:... 阅读全文
posted @ 2018-05-21 15:32 katherine9 阅读(149) 评论(0) 推荐(0) 编辑
摘要: \ 阅读全文
posted @ 2018-05-14 15:17 katherine9 阅读(212) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.setup(600,400,0,0) turtle.bgcolor('red') turtle.color('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.left(144) t... 阅读全文
posted @ 2018-05-07 16:39 katherine9 阅读(216) 评论(0) 推荐(0) 编辑
摘要: myNum = 4 print('猜数字游戏\n') while True: guess = int(input('请猜一个数:')) if guess > myNum: print('猜大了') elif guess < myNum: print('猜小了') else: print('恭喜你,猜对了... 阅读全文
posted @ 2018-05-07 15:38 katherine9 阅读(170) 评论(0) 推荐(0) 编辑
摘要: import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill( 阅读全文
posted @ 2018-05-07 15:24 katherine9 阅读(116) 评论(0) 推荐(0) 编辑
摘要: while True: a=input('1:摄氏转为华氏\n2:华氏转为摄氏\n3:退出\n') if a=="1": celsius=float(input('输入摄氏温度:')) fahrenheit=(celsius*9/5)+32 print('{:2f}摄氏温度转为华氏温度为{:2f}' 阅读全文
posted @ 2018-04-23 16:43 katherine9 阅读(100) 评论(0) 推荐(0) 编辑
摘要: n1=input('请输入第一个数:') n2=input('请输入第二个数:') sum2=int(n1)+int(n2) print('两个数的和是:{}'.format(sum2)) #摄氏℃=5/9(°F-32) #输入 f=float(input('请输入华氏温度:')) #计算 c=5/9*(f-32) #输出 print('{:.2f}华氏温度转换为摄... 阅读全文
posted @ 2018-04-23 15:30 katherine9 阅读(259) 评论(0) 推荐(0) 编辑