sentence = "Hello" print sentence print sentence[:]
两者输出相同的东西,即 Hello
Hello
那么,何时以及为何使用/不使用[:]?
[:]
谢谢!:)
python syntax
python ×1
syntax ×1