新版本的变更 / Python 3.12

nums = ["one""two""three"]

# *** in version 3.12: ***
print(f"nums is '{";".join(nums)}'")
# nums is 'one;two;three'

# *** before: ***
s_nums = "-".join(nums)
print(f"nums is '{s_nums}'")
# nums is 'one-two-three'