摘要: 1.简单的开始: import time scale = 10 print(" 执行开始 ") for i in range(scale + 1) : a = '*' * i b = '.' * (scale - i) c = (i / scale) * 100 print("{:3^.0f}%[{ 阅读全文
posted @ 2021-01-24 20:36 长风青云 阅读(174) 评论(0) 推荐(0)
摘要: time库: 时间获取:time() , ctime() , gmtime() 时间格式化:strftime() , strptime() 程序计时:sleep() , perf_counter() import time print(time.time()) # 1611487365.975021 阅读全文
posted @ 2021-01-24 19:35 长风青云 阅读(76) 评论(0) 推荐(0)
摘要: 数值: 整数类型:可正可负,没有取值范围的限制 pow(x,y):x的y次方 十进制、二进制(0B、0b开头)、八进制(0o、0O开头)、十六进制(0X、0x开头) -0B101/0B101/0X9a 浮点类型:范围存在限制(-10^308 -- 10^308 ,精度数量级10^-16) 浮点数间运 阅读全文
posted @ 2021-01-24 19:11 长风青云 阅读(150) 评论(0) 推荐(0)