第一题

戏唱故梦2025-04-10

代码

year = int(input("请输入出生年份:"))
month = int(input("请输入出生月份:"))
day = int(input("请输入出生日期:"))
print(f"我的出生日期是{year}{month}{day}日。")

运行结果

请输入出生年份:1992
请输入出生月份:12
请输入出生日期:5
我的出生日期是1992年12月5日。
ON THIS PAGE