84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
Python で現在時刻を取得する方法。形式は次のとおりです。
ringa_lee
参考文章:Python获取当前时间
import time time.strftime("%Y-%m-%d %H:%M:%S")
import datetime datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
参考文章:Python获取当前时间
time模块(low level)
datetime模块(high level Object-oriented interface to dates and times)