Skip to content

Instantly share code, notes, and snippets.

@utgwkk
Created August 19, 2015 04:06
Show Gist options
  • Save utgwkk/93560cf6b7e35fb9e3e7 to your computer and use it in GitHub Desktop.
Save utgwkk/93560cf6b7e35fb9e3e7 to your computer and use it in GitHub Desktop.
刹那の見切り
import os
import random
import time
t = random.randint(200,500)
dur = 0
bang = """
____
| |
| |
| |
| |
| |
| |
| |
|____|
____
| |
|____|
"""
while True:
time.sleep(0.01)
dur += 1
if(dur >= t):
t1 = time.clock()
print(bang)
input()
t2 = time.clock()
result = t2-t1
if result < 0.005:
print("お手つきです")
else:
print("あなたの結果: \033[31m %.5f sec \033[39m"%result)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment