🛠️ToolsShed

鞋码转换器

在美国、欧盟、英国和日本尺码之间转换鞋码。

尺码仅供参考。有条件时请实际试穿。

美国男款美国女款欧盟英国日本 (厘米)
35352.521.5
3.55.535.5322
46363.522.5
4.56.537423
5737.54.523.5
5.57.538524
6838.55.524
6.58.539624.5
79406.525
7.59.540.5725.5
810417.526
8.510.542826.5
91142.58.527
9.511.543927.5
1012449.528
10.512.544.51028.5
11134510.529
11.513.545.51129.5
12144611.530
13154712.531

常见问题

代码实现

# Shoe size conversion using lookup tables
# No single formula — sizes require brand-specific tables
# This shows the ISO/standard lookup approach

# EU → US Men's / US Women's / UK / JP (cm)
EU_TO_OTHERS = {
    # (eu): (us_men, us_women, uk_men, jp_cm)
    36:  (4.0,  5.5,  3.5, 22.5),
    37:  (4.5,  6.0,  4.0, 23.0),
    38:  (5.5,  7.0,  5.0, 23.5),
    39:  (6.5,  8.0,  6.0, 24.5),
    40:  (7.0,  8.5,  6.5, 25.0),
    41:  (8.0,  9.5,  7.5, 25.5),
    42:  (9.0, 10.5,  8.0, 26.5),
    43: (10.0, 11.5,  9.0, 27.0),
    44: (11.0, 12.5, 10.0, 27.5),
    45: (12.0, 13.5, 11.0, 28.5),
    46: (13.0, 14.5, 12.0, 29.0),
}

def eu_to_us_men(eu: int) -> float:
    return EU_TO_OTHERS[eu][0]

def eu_to_uk(eu: int) -> float:
    return EU_TO_OTHERS[eu][2]

def eu_to_jp(eu: int) -> float:
    return EU_TO_OTHERS[eu][3]

# JP size = foot length in cm (nearest 0.5)
def foot_cm_to_jp(foot_cm: float) -> float:
    return round(foot_cm * 2) / 2  # round to nearest 0.5

# Examples
print(eu_to_us_men(42))   # 9.0
print(eu_to_uk(42))       # 8.0
print(eu_to_jp(42))       # 26.5
print(foot_cm_to_jp(26.3))  # 26.5

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.