11 2023 档案

摘要:import turtle, datetime def drawGap(): # 绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw): # 绘制单段数码管 drawGap() turtle.pendown() if draw else tur 阅读全文
posted @ 2023-11-21 20:52 T1an- 阅读(20) 评论(0) 推荐(0)
摘要:π的计算 import random S = 1e6 N = 0 for i in range(int(S)): x = random.random() y = random.random() d = (x-0.5)**2+(y-0.5)**2 if d<=0.5**2: N+=1 else: pa 阅读全文
posted @ 2023-11-01 11:16 T1an- 阅读(21) 评论(0) 推荐(0)
摘要:03超市结账抹零行为 num = float(input("您的结账金额为")) num1 = int(num) print(num1) print(3130) 04计算学生的分差和平均值 python=int(input()) english=int(input()) c=int(input()) 阅读全文
posted @ 2023-11-01 11:14 T1an- 阅读(15) 评论(0) 推荐(0)