我在Python中尝试字符串重复.
#!/bin/python str = 'Hello There' print str[:5]*2
产量
你好你好
要求的输出
任何人都可以指出我正确的方向.
Python版本:2.6.4
python
python ×1