1
0

More than 1 year has passed since last update.

pythonのsleep関数について

Last updated at Posted at 2022-07-15

pythonのsleep関数について、

doudemoii.py
import time
print("mitsuya")
time.sleep(1)
print("cider")
time.sleep(1)
print("LOVE!!!")

とまあこんな感じで書きます。
だがサイダー氏思った
timeモジュールってsieep以外ほぼ使わないじゃん!
たから、こうすればもっと効率的じゃね?

doudemoii.py
from time import sleep
print("mitsuya")
sleep(1)
print("cider")
sleep(1)
print("LOVE!!!")

「time.」って打つの地味にめんどくない?
どうせtimeモジュールなんてsleep以外たいして使わんやろ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0