摘要:
import turtle turtle.speed(10) colors =['#00FFFF','#00F5FF','#00E5EE','#00EEEE','#00CED1'] for i in range(200): turtle.pencolor(colors[i%5]) turtle.fo 阅读全文
摘要:
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): 阅读全文
摘要:
f = float(input('请输入摄氏温度:')) c =5/9*(f-32) print('{:.2f}华氏温度转为摄氏温度为:{:.2f}'.format(f,c)) c = float(input('请输入华氏温度:')) f = c*9/5+32 print('{:.2f}摄氏温度转为华氏温度:{:.2f}'.format(c,f)) 阅读全文