This has always confused me.
(这一直使我感到困惑。)
It seems like this would be nicer: (看起来这样会更好:)
my_list = ["Hello", "world"]
print(my_list.join("-"))
# Produce: "Hello-world"
Than this:
(比这个:)
my_list = ["Hello", "world"]
print("-".join(my_list))
# Produce: "Hello-world"
Is there a specific reason it is like this?
(是否有特定原因?)
ask by Evan Fosmark translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…