This is a sad story.
from datetime import datetime
now = datetime.now()
now.strftime("%Y-%m-%d")
now.strftime("%A, %d. %B %Y %I:%M%p")
#someday.strftime()的格式化字符串与str.format()方法一起使用
print("今天是{0:%Y}年{0:%m}月{0:%d}日".format(now))
This is a sad story.
from datetime import datetime
now = datetime.now()
now.strftime("%Y-%m-%d")
now.strftime("%A, %d. %B %Y %I:%M%p")
#someday.strftime()的格式化字符串与str.format()方法一起使用
print("今天是{0:%Y}年{0:%m}月{0:%d}日".format(now))