关于Python字符串操作的描述,错误的是 A: >>> "hellohellohello"/3<br/>输出结果是"hello" B: >>> "hello"*2<br/>输出结构是'hellohello' C: >>> 'hello' + 1<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError:<br/>must be str, not int D: >>> "hello" - "world"<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
关于Python字符串操作的描述,错误的是 A: >>> "hellohellohello"/3<br/>输出结果是"hello" B: >>> "hello"*2<br/>输出结构是'hellohello' C: >>> 'hello' + 1<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError:<br/>must be str, not int D: >>> "hello" - "world"<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
关于Python字符串操作的描述,错误的是() A: >>><br/>"hellohellohello"/3<br/>输出结果是"hello" B: >>><br/>"hello"*2<br/>输出结构是'hellohello' C: >>><br/>'hello' + 1<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError: must be<br/>str, not int D: >>><br/>"hello" - "world"<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
关于Python字符串操作的描述,错误的是() A: >>><br/>"hellohellohello"/3<br/>输出结果是"hello" B: >>><br/>"hello"*2<br/>输出结构是'hellohello' C: >>><br/>'hello' + 1<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError: must be<br/>str, not int D: >>><br/>"hello" - "world"<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'