Spaces:
Running
Running
Download body_reading_knowledge.py from sisithefox/astrologybazi-api: direct link, hf CLI and curl.
- Browser
- Download file 22 kB
-
https://huggingface.co/spaces/sisithefox/astrologybazi-api/resolve/main/body_reading_knowledge.py
- Command line
-
hf download hf://spaces/sisithefox/astrologybazi-api/body_reading_knowledge.py
-
curl -L -o body_reading_knowledge.py https://huggingface.co/spaces/sisithefox/astrologybazi-api/resolve/main/body_reading_knowledge.py
22 kB
| """ | |
| 五行体相知识库 (Five Elements Body Reading Knowledge Base) | |
| 基于传统命理学的五行→手型/面相/体型/性格/疾病/职业映射 | |
| 数据来源: | |
| - 五行形体类象.txt | |
| - wanwu_leixiang.py WUXING_XINGTI | |
| - patina.com.hk / wlfengshui.com → 五行手型特征 | |
| - 传统面相学经典文献 | |
| 🦊 Generated with Sisi - Sparksverse AI Studio | |
| """ | |
| from typing import Dict, List, Any | |
| # ==================== 五行手型分类 ==================== | |
| FIVE_ELEMENT_HANDS = { | |
| '木': { | |
| 'shape': '木型手', | |
| 'shapeId': 'wood', | |
| 'description': '掌平而长,手指修长灵巧,指节分明,手掌纹路清晰', | |
| 'description_en': 'Wood Hand — Long palm with slender, agile fingers and clear palm lines', | |
| 'traits': '灵活上进、善于思考、创意丰富', | |
| 'traits_en': 'Agile, creative, analytical mind', | |
| 'features': { | |
| 'palm': '掌形偏长,掌心纹理细密清晰', | |
| 'fingers': '手指修长纤细,指节分明', | |
| 'skin': '肤色偏青白,皮肤细腻', | |
| 'nails': '指甲长而薄,有光泽', | |
| }, | |
| 'personality': ['仁慈忠厚', '有主见', '举止端庄', '善于规划', '爱好学习'], | |
| 'personality_en': ['Compassionate', 'Decisive', 'Elegant bearing', 'Strategic planner', 'Love of learning'], | |
| }, | |
| '火': { | |
| 'shape': '火型手', | |
| 'shapeId': 'fire', | |
| 'description': '掌形上尖下阔,指尖略尖,手掌偏红润,肉感较强', | |
| 'description_en': 'Fire Hand — Broad palm tapering to pointed fingertips, warm reddish tone', | |
| 'traits': '热情洋溢、行动力强、富有创造力', | |
| 'traits_en': 'Passionate, action-oriented, highly creative', | |
| 'features': { | |
| 'palm': '掌形宽大饱满,掌色偏红润', | |
| 'fingers': '指尖略尖,手指中等长度', | |
| 'skin': '手温偏热,肤色偏红', | |
| 'nails': '指甲偏短偏红', | |
| }, | |
| 'personality': ['聪敏大方', '有奋发精神', '创造力强', '喜修饰装扮', '作风严谨'], | |
| 'personality_en': ['Brilliant and generous', 'Ambitious spirit', 'Highly creative', 'Style-conscious', 'Disciplined'], | |
| }, | |
| '土': { | |
| 'shape': '土型手', | |
| 'shapeId': 'earth', | |
| 'description': '掌形方正厚实,手指粗壮短圆,肌肉丰满,手掌厚重', | |
| 'description_en': 'Earth Hand — Square, thick palm with sturdy, rounded fingers', | |
| 'traits': '稳重踏实、忠诚可靠、耐力极佳', | |
| 'traits_en': 'Grounded, loyal, exceptional endurance', | |
| 'features': { | |
| 'palm': '掌形方正宽厚,掌肉丰满', | |
| 'fingers': '手指粗壮短圆,握力大', | |
| 'skin': '肤色偏黄,皮肤厚实', | |
| 'nails': '指甲方正宽厚', | |
| }, | |
| 'personality': ['稳重忠诚', '心胸宽广', '孝顺守信', '坚忍有耐心', '敬信传统'], | |
| 'personality_en': ['Steady and loyal', 'Broad-minded', 'Filial and trustworthy', 'Patient and resilient', 'Respects tradition'], | |
| }, | |
| '金': { | |
| 'shape': '金型手', | |
| 'shapeId': 'metal', | |
| 'description': '掌形方圆有力,手指骨节突出,手掌紧实有弹性', | |
| 'description_en': 'Metal Hand — Firm, well-structured palm with prominent knuckles', | |
| 'traits': '果断坚毅、善于决策、处事干练', | |
| 'traits_en': 'Decisive, resolute, efficient executor', | |
| 'features': { | |
| 'palm': '掌形方圆紧实,掌色白净', | |
| 'fingers': '骨节突出,指形挺拔有力', | |
| 'skin': '肤色白皙,皮肤紧实', | |
| 'nails': '指甲坚硬有光泽', | |
| }, | |
| 'personality': ['果断有才华', '善交际', '重名声', '光明正大', '仗义疏财'], | |
| 'personality_en': ['Talented and decisive', 'Socially adept', 'Values reputation', 'Upright character', 'Generous'], | |
| }, | |
| '水': { | |
| 'shape': '水型手', | |
| 'shapeId': 'water', | |
| 'description': '掌形圆润柔软,手指灵活纤细,手掌偏白嫩多汗', | |
| 'description_en': 'Water Hand — Soft, rounded palm with flexible, delicate fingers', | |
| 'traits': '聪慧灵活、善于交际、适应力强', | |
| 'traits_en': 'Intelligent, socially gifted, highly adaptable', | |
| 'features': { | |
| 'palm': '掌形圆润饱满,掌纹多而细', | |
| 'fingers': '手指灵活纤细,肤色偏白', | |
| 'skin': '皮肤细白柔嫩,易出汗', | |
| 'nails': '指甲圆润偏软', | |
| }, | |
| 'personality': ['聪慧机敏', '思维敏捷', '善于变通', '目光远大', '有经济头脑'], | |
| 'personality_en': ['Sharp intellect', 'Quick thinker', 'Flexible and adaptable', 'Visionary', 'Business-minded'], | |
| }, | |
| } | |
| # ==================== 五行面相分类 ==================== | |
| FIVE_ELEMENT_FACES = { | |
| '木': { | |
| 'shape': '长脸/瓜子脸', | |
| 'shape_en': 'Oval / Long face', | |
| 'skin_tone': '青白色,肤色清爽', | |
| 'skin_tone_en': 'Fair with greenish-white undertone', | |
| 'eyes': '眉目修长清秀,眉毛浓密', | |
| 'eyes_en': 'Long, elegant brows; refined eyes', | |
| 'nose': '鼻梁挺直,鼻翼适中', | |
| 'nose_en': 'Straight nose bridge', | |
| 'mouth': '口唇较薄,唇色偏淡', | |
| 'mouth_en': 'Thinner lips, light color', | |
| 'forehead': '额头偏高,发际线清晰', | |
| 'forehead_en': 'High forehead with clear hairline', | |
| 'overall': '人物修长,须发美,眉目秀', | |
| 'overall_en': 'Tall and slender build; attractive hair and brows', | |
| }, | |
| '火': { | |
| 'shape': '尖形脸/倒三角脸', | |
| 'shape_en': 'Inverted triangle / Heart-shaped face', | |
| 'skin_tone': '偏红润,面色有光泽', | |
| 'skin_tone_en': 'Rosy, glowing complexion', | |
| 'eyes': '眉毛浓密,目光炯炯有神', | |
| 'eyes_en': 'Thick brows; bright, intense eyes', | |
| 'nose': '鼻露窍,鼻头偏尖', | |
| 'nose_en': 'Slightly upturned nose tip', | |
| 'mouth': '口唇红润,说话快速', | |
| 'mouth_en': 'Full red lips; fast speaker', | |
| 'forehead': '额窄但明亮,印堂窄', | |
| 'forehead_en': 'Narrow but bright forehead', | |
| 'overall': '面貌上尖下阔,肉多,头小脚长', | |
| 'overall_en': 'Face narrows at top, broader at bottom; athletic build', | |
| }, | |
| '土': { | |
| 'shape': '方脸/国字脸', | |
| 'shape_en': 'Square / Round face', | |
| 'skin_tone': '面色黄润,肤质厚实', | |
| 'skin_tone_en': 'Yellowish warm tone; thick skin', | |
| 'eyes': '眉毛淡而不秀,目光温和', | |
| 'eyes_en': 'Light brows; gentle, calm eyes', | |
| 'nose': '鼻大丰厚,鼻翼宽', | |
| 'nose_en': 'Large, fleshy nose with wide nostrils', | |
| 'mouth': '口方正,唇厚丰满', | |
| 'mouth_en': 'Square mouth with full lips', | |
| 'forehead': '额头圆阔,头圆面阔', | |
| 'forehead_en': 'Round, broad forehead', | |
| 'overall': '头圆、面阔、鼻大、口方、背厚腰粗', | |
| 'overall_en': 'Round head, broad face, thick build', | |
| }, | |
| '金': { | |
| 'shape': '方圆脸/鹅蛋脸', | |
| 'shape_en': 'Oval-square face', | |
| 'skin_tone': '肤色白皙,皮肤光滑细腻', | |
| 'skin_tone_en': 'Fair and smooth complexion', | |
| 'eyes': '眉目英俊,目光锐利', | |
| 'eyes_en': 'Handsome brows; sharp, piercing eyes', | |
| 'nose': '鼻直口正,鼻梁高挺', | |
| 'nose_en': 'Straight, prominent nose', | |
| 'mouth': '口正唇红,声音清亮', | |
| 'mouth_en': 'Well-shaped mouth; clear voice', | |
| 'forehead': '额头方正,天庭饱满', | |
| 'forehead_en': 'Square, full forehead', | |
| 'overall': '脸形方圆,肤色白皙,眉目英俊,体质健壮', | |
| 'overall_en': 'Well-proportioned face; fair skin; strong physique', | |
| }, | |
| '水': { | |
| 'shape': '圆脸/娃娃脸', | |
| 'shape_en': 'Round / Baby face', | |
| 'skin_tone': '皮肤细白,面色柔润', | |
| 'skin_tone_en': 'Soft, fair, dewy complexion', | |
| 'eyes': '眉清目秀,目光灵动', | |
| 'eyes_en': 'Fine brows; bright, expressive eyes', | |
| 'nose': '鼻翼柔软,鼻头圆润', | |
| 'nose_en': 'Soft, rounded nose', | |
| 'mouth': '口唇柔润,语音清和', | |
| 'mouth_en': 'Soft lips; gentle, harmonious voice', | |
| 'forehead': '额头圆润,面部丰满', | |
| 'forehead_en': 'Smooth, rounded forehead', | |
| 'overall': '眉清目秀,圆脸,肩不阔,皮肤细白', | |
| 'overall_en': 'Fine features; round face; fair, delicate skin', | |
| }, | |
| } | |
| # ==================== 五行体型分类 ==================== | |
| FIVE_ELEMENT_BODIES = { | |
| '木': { | |
| 'frame': '身材修长偏瘦', | |
| 'frame_en': 'Tall and slender build', | |
| 'voice': '声音畅快,音调较高', | |
| 'voice_en': 'Clear, uplifting voice with higher pitch', | |
| 'posture': '坐立身多倚侧,举止潇洒', | |
| 'posture_en': 'Graceful posture with slight lean', | |
| 'strong': '人物修长,须发美,眉目秀,肤色白', | |
| 'weak': '身材瘦小,发稀少枯焦,皮肤干燥', | |
| }, | |
| '火': { | |
| 'frame': '上身壮实,头小脚长', | |
| 'frame_en': 'Strong upper body, small head, long legs', | |
| 'voice': '说话速度快,声音洪亮', | |
| 'voice_en': 'Fast speaker with a powerful voice', | |
| 'posture': '好动,坐立不安,充满活力', | |
| 'posture_en': 'Energetic, restless, always moving', | |
| 'strong': '面貌上尖下阔,肉多,背部厚实', | |
| 'weak': '身形瘦小偏黑,语无伦次', | |
| }, | |
| '土': { | |
| 'frame': '体态丰满敦厚', | |
| 'frame_en': 'Full, sturdy build', | |
| 'voice': '声音重浊,常缄默,静多动少', | |
| 'voice_en': 'Deep, resonant voice; calm and quiet demeanor', | |
| 'posture': '坐姿稳重,行动沉稳', | |
| 'posture_en': 'Steady posture, measured movements', | |
| 'strong': '头圆、面阔、鼻大、背厚腰粗', | |
| 'weak': '面常忧愁,体格单薄瘦', | |
| }, | |
| '金': { | |
| 'frame': '体质健壮,骨架分明', | |
| 'frame_en': 'Strong physique with defined bone structure', | |
| 'voice': '声音清亮,有穿透力', | |
| 'voice_en': 'Clear, penetrating voice', | |
| 'posture': '挺拔端正,步态稳健', | |
| 'posture_en': 'Upright and dignified bearing', | |
| 'strong': '脸形方圆,肤色白皙,眉目英俊,体质健壮', | |
| 'weak': '瘦小貌丑', | |
| }, | |
| '水': { | |
| 'frame': '身体圆润柔软', | |
| 'frame_en': 'Soft, rounded body shape', | |
| 'voice': '语音清和,温柔悦耳', | |
| 'voice_en': 'Gentle, melodious voice', | |
| 'posture': '身体易摇摆,行动灵活', | |
| 'posture_en': 'Fluid, graceful movement', | |
| 'strong': '眉清目秀,圆脸,皮肤细白', | |
| 'weak': '矮小黑丑', | |
| }, | |
| } | |
| # ==================== 五行职业适配 ==================== | |
| FIVE_ELEMENT_CAREERS = { | |
| '木': { | |
| 'careers': ['教育文化', '医药', '公务界', '文学创作', '出版', '园艺植物'], | |
| 'careers_en': ['Education', 'Medicine', 'Civil Service', 'Writing & Publishing', 'Horticulture'], | |
| 'brief': '木型体格利文教事业', | |
| 'brief_en': 'Wood type excels in education and cultural careers', | |
| }, | |
| '火': { | |
| 'careers': ['艺术表演', '美容化妆', '电力能源', '餐饮', '科技创新', '设计'], | |
| 'careers_en': ['Arts & Performance', 'Beauty', 'Energy', 'Food Industry', 'Tech Innovation', 'Design'], | |
| 'brief': '火型体格利创意产业', | |
| 'brief_en': 'Fire type excels in creative industries', | |
| }, | |
| '土': { | |
| 'careers': ['建筑地产', '农业', '管理顾问', '企业管理', '金融保险', '物流仓储'], | |
| 'careers_en': ['Real Estate', 'Agriculture', 'Management Consulting', 'Corporate Management', 'Finance'], | |
| 'brief': '土型体格利管理实业', | |
| 'brief_en': 'Earth type excels in management and solid industries', | |
| }, | |
| '金': { | |
| 'careers': ['金融银行', '法律司法', '机械制造', '珠宝', '军警', '外科医疗'], | |
| 'careers_en': ['Banking & Finance', 'Law', 'Manufacturing', 'Jewelry', 'Military/Police', 'Surgery'], | |
| 'brief': '金型体格利金融法律', | |
| 'brief_en': 'Metal type excels in finance and law', | |
| }, | |
| '水': { | |
| 'careers': ['外交传媒', '旅游', '贸易', '物流运输', '渔业水产', '演艺娱乐'], | |
| 'careers_en': ['Diplomacy & Media', 'Tourism', 'Trading', 'Logistics', 'Entertainment'], | |
| 'brief': '水型体格利流通传媒', | |
| 'brief_en': 'Water type excels in communication and trade', | |
| }, | |
| } | |
| # ==================== 五行健康风险 ==================== | |
| FIVE_ELEMENT_HEALTH = { | |
| '木': { | |
| 'weak_organs': ['肝胆', '眼睛', '神经系统'], | |
| 'weak_organs_en': ['Liver & Gallbladder', 'Eyes', 'Nervous System'], | |
| 'risks': ['头晕眼花', '神经痛', '筋骨疼痛', '肝胆之疾'], | |
| 'advice': '木弱需护肝养目,23点前入睡', | |
| 'advice_en': 'Protect liver & eyes; sleep before 11 PM', | |
| }, | |
| '火': { | |
| 'weak_organs': ['心脏', '小肠', '血液循环'], | |
| 'weak_organs_en': ['Heart', 'Small Intestine', 'Blood Circulation'], | |
| 'risks': ['心悸', '血压异常', '肠胃病', '视力问题'], | |
| 'advice': '火弱需养心安神,避免过度兴奋', | |
| 'advice_en': 'Nourish the heart; avoid overstimulation', | |
| }, | |
| '土': { | |
| 'weak_organs': ['脾胃', '消化系统', '肌肉'], | |
| 'weak_organs_en': ['Spleen & Stomach', 'Digestive System', 'Muscles'], | |
| 'risks': ['消化不良', '四肢乏力', '皮肤问题', '营养不良'], | |
| 'advice': '土弱需健脾养胃,饮食规律定时', | |
| 'advice_en': 'Strengthen digestion; eat regularly', | |
| }, | |
| '金': { | |
| 'weak_organs': ['肺', '大肠', '呼吸系统'], | |
| 'weak_organs_en': ['Lungs', 'Large Intestine', 'Respiratory System'], | |
| 'risks': ['呼吸系统病症', '易感冒', '皮肤干燥', '骨骼关节病'], | |
| 'advice': '金弱需润肺养气,注意保暖防寒', | |
| 'advice_en': 'Nourish lungs; stay warm and avoid cold', | |
| }, | |
| '水': { | |
| 'weak_organs': ['肾脏', '膀胱', '泌尿系统'], | |
| 'weak_organs_en': ['Kidneys', 'Bladder', 'Urinary System'], | |
| 'risks': ['肾虚', '腰膝酸软', '耳鸣', '泌尿系统疾病'], | |
| 'advice': '水弱需补肾固精,避免过劳熬夜', | |
| 'advice_en': 'Strengthen kidneys; avoid overwork and late nights', | |
| }, | |
| } | |
| # ==================== 五行运势域模板 ==================== | |
| FORTUNE_DOMAIN_TEMPLATES = { | |
| '财运': { | |
| 'wood_high': '木旺生火助财,财源可期', | |
| 'wood_low': '木弱财气不稳,需勤俭持家', | |
| 'fire_high': '火旺财星明亮,投资有利', | |
| 'fire_low': '火弱财运平平,宜稳健理财', | |
| 'earth_high': '土旺根基稳固,财运厚重', | |
| 'earth_low': '土弱收入不稳,宜储蓄为主', | |
| 'metal_high': '金旺利生水财,善于积累', | |
| 'metal_low': '金弱财星暗淡,需开源节流', | |
| 'water_high': '水旺智慧生财,灵活多变', | |
| 'water_low': '水弱财运波动,宜保守投资', | |
| }, | |
| '事业': { | |
| 'wood_high': '木旺利文教科研,事业节节高升', | |
| 'wood_low': '木弱事业进展缓慢,需贵人相助', | |
| 'fire_high': '火旺创业精神旺盛,适合开拓', | |
| 'fire_low': '火弱动力不足,宜稳步前行', | |
| 'earth_high': '土旺管理能力突出,适合统筹', | |
| 'earth_low': '土弱根基不稳,需夯实基础', | |
| 'metal_high': '金旺决策果断,适合领导岗位', | |
| 'metal_low': '金弱执行力弱,需培养果断', | |
| 'water_high': '水旺善于变通,适合创新领域', | |
| 'water_low': '水弱思路不清,宜静心规划', | |
| }, | |
| '健康': { | |
| 'wood_high': '木旺体格修长,精力充沛', | |
| 'wood_low': '木弱需护肝养目,注意休息', | |
| 'fire_high': '火旺血气旺盛,注意心脑', | |
| 'fire_low': '火弱气血不足,宜温补调养', | |
| 'earth_high': '土旺体态丰满,消化良好', | |
| 'earth_low': '土弱脾胃虚弱,注意饮食', | |
| 'metal_high': '金旺体质刚健,肺气充足', | |
| 'metal_low': '金弱呼吸系统脆弱,防寒保暖', | |
| 'water_high': '水旺肾气充足,精力旺盛', | |
| 'water_low': '水弱肾气不足,避免过劳', | |
| }, | |
| '感情': { | |
| 'wood_high': '木旺情感丰富,桃花运旺', | |
| 'wood_low': '木弱感情内敛,需主动表达', | |
| 'fire_high': '火旺热情奔放,魅力四射', | |
| 'fire_low': '火弱感情淡薄,需培养热情', | |
| 'earth_high': '土旺感情稳定,家庭和睦', | |
| 'earth_low': '土弱缺乏安全感,需建立信任', | |
| 'metal_high': '金旺感情专一,重情重义', | |
| 'metal_low': '金弱感情优柔,需果断抉择', | |
| 'water_high': '水旺异性缘佳,桃花多', | |
| 'water_low': '水弱感情波折,需稳定心态', | |
| }, | |
| '人际': { | |
| 'wood_high': '木旺仁慈待人,人缘极佳', | |
| 'wood_low': '木弱社交被动,需拓展人脉', | |
| 'fire_high': '火旺热情社交,朋友众多', | |
| 'fire_low': '火弱缺乏热情,宜真诚待人', | |
| 'earth_high': '土旺忠厚诚信,信誉良好', | |
| 'earth_low': '土弱不善交际,需增强沟通', | |
| 'metal_high': '金旺义气仗义,贵人运强', | |
| 'metal_low': '金弱人际冷淡,需主动结交', | |
| 'water_high': '水旺善于交际,八面玲珑', | |
| 'water_low': '水弱交际能力弱,需学习沟通', | |
| }, | |
| } | |
| # ==================== Barnum Effect 钩子文案模板 ==================== | |
| BARNUM_HOOKS = { | |
| '木': { | |
| 'zh': '您命局木气{strength}(木{score}),预测您为木型手——掌平而长,手指修长灵巧。木主仁慈智慧,您天生具有文人气质,善于分析思考。但木{balance_note},{advice}。面相上,您应当眉目修长清秀,鼻梁挺直——这些与实拍照片的对比分析,将在完整报告中揭示。', | |
| 'en': 'Your chart shows {strength_en} Wood energy (Wood {score}), predicting a Wood-type hand — long palm with slender, agile fingers. Wood governs compassion and wisdom; you naturally possess a scholarly temperament. However, {advice_en}. Your facial features should show elegant brows and a straight nose — the AI photo comparison will reveal the full picture.', | |
| }, | |
| '火': { | |
| 'zh': '您命局火气{strength}(火{score}),预测您为火型手——掌形宽大,指尖略尖。火主礼仪聪明,您天生充满创造力和行动力。但火{balance_note},{advice}。面相上,您应当面色红润、目光炯炯——完整的AI实拍对比分析,将验证这些预测。', | |
| 'en': 'Your chart shows {strength_en} Fire energy (Fire {score}), predicting a Fire-type hand — broad palm with pointed fingertips. Fire governs passion and brilliance; you\'re naturally creative and action-driven. However, {advice_en}. The complete AI photo analysis will validate these predictions.', | |
| }, | |
| '土': { | |
| 'zh': '您命局土气{strength}(土{score}),预测您为土型手——掌形方正厚实,手指粗壮有力。土主信义稳重,您天生具有管理才能和坚韧品格。但土{balance_note},{advice}。面相上,您应当面阔鼻大、气度沉稳——AI实拍分析将揭示更多细节。', | |
| 'en': 'Your chart shows {strength_en} Earth energy (Earth {score}), predicting an Earth-type hand — square, thick palm with sturdy fingers. Earth governs loyalty and stability; you\'re a natural leader. However, {advice_en}. The AI photo analysis will reveal deeper insights.', | |
| }, | |
| '金': { | |
| 'zh': '您命局金气{strength}(金{score}),预测您为金型手——掌形方圆有力,骨节突出。金主义气果断,您天生具有领导魄力和决策能力。但金{balance_note},{advice}。面相上,您应当肤色白皙、眉目英俊——完整分析将对比实拍验证。', | |
| 'en': 'Your chart shows {strength_en} Metal energy (Metal {score}), predicting a Metal-type hand — firm, well-structured palm. Metal governs justice and decisiveness; you\'re a natural decision-maker. However, {advice_en}. The full AI analysis will verify these through your photo.', | |
| }, | |
| '水': { | |
| 'zh': '您命局水气{strength}(水{score}),预测您为水型手——掌形圆润柔软,手指灵活纤细。水主智慧变通,您天生聪慧灵活,善于洞察人心。但水{balance_note},{advice}。面相上,您应当眉清目秀、面容柔润——AI实拍对比将展示完整画像。', | |
| 'en': 'Your chart shows {strength_en} Water energy (Water {score}), predicting a Water-type hand — soft, rounded palm with delicate fingers. Water governs wisdom and adaptability; you\'re naturally perceptive. However, {advice_en}. The AI photo comparison will complete the picture.', | |
| }, | |
| } | |
| # ==================== 辅助映射 ==================== | |
| ELEMENT_CN_TO_EN = { | |
| '木': 'Wood', '火': 'Fire', '土': 'Earth', '金': 'Metal', '水': 'Water' | |
| } | |
| ELEMENT_EN_TO_CN = { | |
| 'wood': '木', 'fire': '火', 'earth': '土', 'metal': '金', 'water': '水' | |
| } | |
| # 五行相生关系 | |
| ELEMENT_GENERATES = { | |
| '木': '火', '火': '土', '土': '金', '金': '水', '水': '木' | |
| } | |
| # 五行相克关系 | |
| ELEMENT_RESTRICTS = { | |
| '木': '土', '火': '金', '土': '水', '金': '木', '水': '火' | |
| } | |