10 2020 档案
七段数码管绘制(时、分、秒)
摘要:import turtle as t import time def popspace(): #单管间隔 t.penup() t.fd(4) def popline(draw): #画数码管 popspace() t.pendown() if draw else t.penup() t.fd(40)
阅读全文
用phthon计算圆周率
摘要:from math import sqrt from tqdm import tqdm #导入进度条 from random import random #导入随机函数 import time #导入时间包 DARTS=100 hits=0.0 t=time.perf_counter() # tim
阅读全文
浙公网安备 33010602011771号