摘要:
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... 阅读全文
摘要:
import turtle turtle.circle(50) turtle.circle(52) turtle.circle(54) turtle.circle(56) turtle.circle(58) turtle.done 阅读全文
摘要:
myNumber = 5 while True: guess = int(input('请输入一个数字')) if guess > myNumber: print('大了') elif guess < myNumber: print('小了') else: print('恭喜答对了') break ... 阅读全文
摘要:
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... 阅读全文
摘要:
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('{... 阅读全文