源代码
import datetime x = datetime.datetime.now() print(x.strftime("%w"))
运行结果