摘要: import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144) turtle.end_fi... 阅读全文
posted @ 2018-05-09 20:49 Milliezhu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(50) turtle.circle(52) turtle.circle(54) turtle.circle(56) turtle.circle(58) turtle.done 阅读全文
posted @ 2018-05-02 21:52 Milliezhu 阅读(136) 评论(0) 推荐(0) 编辑
摘要: myNumber = 5 while True: guess = int(input('请输入一个数字')) if guess > myNumber: print('大了') elif guess < myNumber: print('小了') else: print('恭喜答对了') break ... 阅读全文
posted @ 2018-05-02 21:28 Milliezhu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: while True: a = input('1.摄氏转华氏 \n 2.华氏转摄氏') if a =='1': c=input('请输入摄氏温度:') f=float('{}摄氏温度转为华氏温度是{}'.format(c,'f'))*9/5+32 print(f) elif: a =='2': f = float... 阅读全文
posted @ 2018-04-25 21:44 Milliezhu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: a = input('1.摄氏转华氏 \n 2.华氏转摄氏') if a =='1': c=input('请输入摄氏温度:') f=float('{}摄氏温度转为华氏温度是{}'.format(c,f))*9/5+32 print(f) else: f = float(input('请输入华氏温度:')) c=5/9*(f-32) print('{... 阅读全文
posted @ 2018-04-25 21:12 Milliezhu 阅读(87) 评论(0) 推荐(0) 编辑
摘要: a = input('请输入一个数') b = input('请输入第二个数') sum2=int(a) + int(b) print('两个数的和是:{}'.format(sum2)) a = input('请输入一个摄氏温度') sum2=int(a) * 9/5 +32 print('转换的华氏温度是:{} '.format(sum2)) 阅读全文
posted @ 2018-04-18 21:53 Milliezhu 阅读(111) 评论(0) 推荐(0) 编辑
摘要: name1 = input ('请输入一个人的名字') name2 = input ('再输入一个人的名字') print('一个叫{}的女生,在和{}吃鸡'.format(name1, name2)) 阅读全文
posted @ 2018-04-18 21:27 Milliezhu 阅读(92) 评论(0) 推荐(0) 编辑