02

确实应写成“32nd”,不是“32th”。

  • 例子:21st, 22nd, 23rd, 24th… 31st, 32nd, 33rd, 34th
  • 小建议(避免再踩坑):

    Python 版序数词函数:

    def ordinal(n: int) -> str:
        return f"{n}{'th' if 10 <= n % 100 <= 13 else {1: 'st', 2: 'nd', 3: 'rd'}.get(n % 10, 'th')}"
    

    需要我把这段做成命令行小脚本或给设计同事一个 Figma 文案库吗?