摘要:
from random import randomfrom time import perf_counterDARTS=1000*1000hits=0.0start=perf_counter()for i in range(1,DARTS+1): x,y=random(),random() dist 阅读全文
摘要:
s="python"while s!="": for c in s: if c=="t": break print(c,end='') s=s[:-1]输出结果:pypypypypyps="python"while s!="": for c in s: if c=="t": continue pri 阅读全文