摘要: # dayup = pow(1.001,365)# daydown = pow(0.999,365)# print('向上:{:.2f},向下:{:.2f}'.format(dayup,daydown))# dayfactor = 0.005# dayup = pow(1+dayfactor,365 阅读全文
posted @ 2019-07-18 15:42 whw1314 阅读(191) 评论(0) 推荐(0) 编辑
摘要: '''import timetime.<b>()time库的使用 时间获取:time() ctime() getime() 时间格式化: strftime(tpl,ts) strptime(str,tpl) # tpl是格式化模板字符串,用来定义输出效果。ts是计算机内部时间类型变量。 # str是 阅读全文
posted @ 2019-07-18 15:42 whw1314 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # PythonDraw.pyimport turtle # import保留字,引入了一个绘图库。名字叫做:turtle(海龟)turtle.setup(650,350,200,200) # -setup()设置窗体大小及位置,4个参数中后两个可选turtle.penup() # 别名turtle 阅读全文
posted @ 2019-07-18 15:40 whw1314 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: #TempComvert.pyTempStr = input('请输入带有符号的温度值:')if TempStr[-1] in ['F','f']: C = (eval(TempStr[0:-1]) - 32)/1.8 print('转换后的温度是{:.2f}C'.format(C))elif Te 阅读全文
posted @ 2019-07-18 15:39 whw1314 阅读(569) 评论(0) 推荐(0) 编辑