返回年份和 weekday 的名称返回年份和 weekday 的名称import datetime x = datetime.datetime.now() print(x.year)print(x.strftime("%A"))