python / python.py
yuuu-1017's picture
Update python.py
937edc5 verified
def get_outfit(season, gender, occasion):
result = f"\n你的選擇是:{season} / {gender} / {occasion}\n"
result += "🎯 以下是你的穿搭建議:\n"
if season == "夏季":
if gender == "女生":
if occasion == "約會":
result += "- 上身:無袖雪紡上衣\n"
result += "- 下身:高腰短裙\n"
result += "- 鞋子:小白鞋 / 涼鞋\n"
result += "- 配件:編織包、簡約飾品"
elif occasion == "上班":
result += "- 上身:短袖襯衫\n"
result += "- 下身:西裝褲 / 寬褲\n"
result += "- 鞋子:樂福鞋 / 穩勤鞋\n"
result += "- 配件:手錶、公事包"
elif occasion == "出遊":
result += "- 上身:棉麻上衣\n"
result += "- 下身:牛仔褲 / 休閒褲\n"
result += "- 鞋子:運動鞋 / 涼鞋\n"
result += "- 配件:太陽眼鏡、後背包"
elif gender == "男生":
if occasion == "約會":
result += "- 上身:休閒短袖襯衫\n"
result += "- 下身:卡其短褲\n"
result += "- 鞋子:帆布鞋\n"
result += "- 配件:運動錶"
elif occasion == "上班":
result += "- 上身:POLO 衫\n"
result += "- 下身:西裝褲\n"
result += "- 鞋子:皮鞋\n"
result += "- 配件:公事包"
elif occasion == "出遊":
result += "- 上身:圖案T恤\n"
result += "- 下身:棉短褲\n"
result += "- 鞋子:運動鞋\n"
result += "- 配件:棒球帽"
elif season == "冬季":
result += "🧣 冬季搭配還沒實作完成,敬請期待!"
else:
result += "⚠️ 無法識別的選項,請重新選擇。"
return result