• 2022-05-28 问题

    关于Python字符串操作的描述,错误的是 A: &gt;&gt;&gt; "hellohellohello"/3<br/>输出结果是"hello" B: &gt;&gt;&gt; "hello"*2<br/>输出结构是'hellohello' C: &gt;&gt;&gt; '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: &gt;&gt;&gt; "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: &gt;&gt;&gt; "hellohellohello"/3<br/>输出结果是"hello" B: &gt;&gt;&gt; "hello"*2<br/>输出结构是'hellohello' C: &gt;&gt;&gt; '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: &gt;&gt;&gt; "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'

  • 2022-05-28 问题

    关于Python字符串操作的描述,错误的是() A: &gt;&gt;&gt;<br/>"hellohellohello"/3<br/>输出结果是"hello" B: &gt;&gt;&gt;<br/>"hello"*2<br/>输出结构是'hellohello' C: &gt;&gt;&gt;<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: &gt;&gt;&gt;<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: &gt;&gt;&gt;<br/>"hellohellohello"/3<br/>输出结果是"hello" B: &gt;&gt;&gt;<br/>"hello"*2<br/>输出结构是'hellohello' C: &gt;&gt;&gt;<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: &gt;&gt;&gt;<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'

  • 1