f-string 改进

版本新特性 / Python 3.12

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

# *** 在 3.12 版本中 ***
print(f"nums is '{";".join(nums)}'")
# nums is 'one;two;three'

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