小编Wil*_*ven的帖子

为什么+(plus)可以在Python中连接两个字符串?

我正在学习如何学习Python.

w = "This is the left side of..."
e = "a string with a right side."
print w + e
Run Code Online (Sandbox Code Playgroud)

解释为什么添加两个字符串we+会产生更长的字符串.

即使我知道它可以工作,但我不明白为什么以及如何?请帮我.

python string python-internals

1
推荐指数
1
解决办法
1492
查看次数

标签 统计

python ×1

python-internals ×1

string ×1