摘要:
5.1 def drawaq(n): line = 3n+1 for i in range(1,line+1): if i%3 == 1: print(n"+ ",end="") print("+") else: print("| "*n,end="") print("|") n = eval(in 阅读全文
摘要:
习题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 阅读全文