macOS环境下: today = datetime.datetime.now().strftime("%-d") Windows环境下: today = datetime.datetime.now().strftime("%#d")