摘要:
习题3.19 import time t = time.gmtime() print(time.strftime("%Y-%m-%d",t)) 习题3.20 import time t = time.gmtime() print(time.strftime("%Y-%m-%d",t)) print( 阅读全文
摘要:
温度转换 TempConvert.py TempStr = input("请输入带有符号的温度值:") if TempStr[-1] in ['F','f']: C = (eval(TempStr[0:-1])-32)/1.8 print("转换后的温度是{:.2f}C".format(C)) el 阅读全文