摘要:
1、math.sqrt平方根 17、海伦公式求三角形面积:p=(a+b+c)/2;s^2=p(p-a)(p-b)(p-c) import math a=int(input("边长a:")) b=int(input("边长b:")) c=int(input("边长c:")) if a+b<=c and 阅读全文
posted @ 2025-04-06 16:58
君庭
阅读(8)
评论(0)
推荐(0)
摘要:
一、时间模块 1、time模块中常见的方法: time() #1970到现在的经过的秒数 ctime() #固定格式的当前时间 sleep(3) #休眠 单位是秒 asctime() #转换为asc码显示当前时间 strftime() #时间格式化 import time print(time.ti 阅读全文
posted @ 2025-04-06 16:58
君庭
阅读(17)
评论(0)
推荐(0)
浙公网安备 33010602011771号