Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

程序运行计时 #6

Open
Python1203 opened this issue May 27, 2020 · 0 comments
Open

程序运行计时 #6

Python1203 opened this issue May 27, 2020 · 0 comments

Comments

@Python1203
Copy link
Owner

Python1203 commented May 27, 2020

#CalRunTime.py
import time
limit =10*1000*1000
start=time.perf_counter()
while True:
           limit-=1
           if limit <=0:
               break
delta=time.perf_counter() - star
print ("程序运行时间是:{}秒".format(delta))
@Python1203 Python1203 changed the title Hello 绘制五角红星 May 27, 2020
@Python1203 Python1203 changed the title 绘制五角红星 程序运行计时 May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant