mirror of
https://github.com/ocogeclub/ocoge.git
synced 2024-11-22 23:59:49 +00:00
14 lines
349 B
Python
14 lines
349 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import time
|
|
import sys
|
|
|
|
for i in range(10, 0, -1):
|
|
print(i, flush=True) # flush=True を指定することで、バッファが無効になる
|
|
# print i # python2.x
|
|
# sys.stdout.flush() # python2.x
|
|
time.sleep(1)
|
|
print("終了 - Python test")
|
|
# print '終了 - Python test' # python2.x
|