Skip to content

Instantly share code, notes, and snippets.

@hamaguchi-amago
Created January 18, 2023 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamaguchi-amago/dba75b364627cf04888fc9ac66beca0e to your computer and use it in GitHub Desktop.
Save hamaguchi-amago/dba75b364627cf04888fc9ac66beca0e to your computer and use it in GitHub Desktop.
import time
from datetime import datetime
print(f"1行目 {datetime.now()}")
time.sleep(1)
print(f"2行目 {datetime.now()}")
@hamaguchi-amago
Copy link
Author

ブログのサンプルとして作成しました。

【Python】sleep関数を使って処理を停止する・繰り返す
https://neko-py.com/python-sleep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment