2025年3月16日
摘要: wenduzhuanhuan2 wendu=input("请输入带有符号的温度:") if wendu[-2:] in ['fa','Fa']: C=(eval(wendu[0:-2])-32)/1.8 print ("转换的温度是{:.2f}C".format(C)) elif wendu[-2: 阅读全文
posted @ 2025-03-16 20:32 汤圆233 阅读(9) 评论(0) 推荐(0)
摘要: 蟒蛇绘图(彩色版): DrawColorfulPython.py import turtle colors = ['red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple'] turtle.setup(650, 350, 200, 200 阅读全文
posted @ 2025-03-16 20:28 汤圆233 阅读(7) 评论(0) 推荐(0)