📅  最后修改于: 2023-12-03 15:10:29.142000             🧑  作者: Mango
在法语中,星期一被称为“Lundi”,是一周的第一天。
def translate_weekday_to_french(weekday):
"""
将英文星期转化为法语星期
"""
weekdays = {
"Monday": "Lundi",
"Tuesday": "Mardi",
"Wednesday": "Mercredi",
"Thursday": "Jeudi",
"Friday": "Vendredi",
"Saturday": "Samedi",
"Sunday": "Dimanche",
}
return weekdays.get(weekday)
# 示例
>>> translate_weekday_to_french("Monday")
"Lundi"