用Python绘制红色五角星
from turtle import * color('red','red') begin_fill() for i in range(5): fd(200) rt(144) end_fill()
Python温度转换代码
tempstr = input('请输入带有符号的温度值:') if tempstr[-1] in ['F','f']: C = (eval(tempstr[0:-1]) - 32)/1.8 print('转换后的温度是{:.2f}C'.format(C)) elif tempstr[-1]...