"hello".repeat(3)的执行结果是 A: hello B: hellooo C: helloooo D: hellohellohello
"hello".repeat(3)的执行结果是 A: hello B: hellooo C: helloooo D: hellohellohello
以下程序运行后的输出结果是x="hello "print(x*3) A: hello*3 B: hello hello hello C: hello D: hellohellohello
以下程序运行后的输出结果是x="hello "print(x*3) A: hello*3 B: hello hello hello C: hello D: hellohellohello
执行以下程序,输出()n = 4def func(str): global n n=3 return str*nfunc("hello")print(n) A: hellohellohellohello B: hellohellohello C: 4 D: 3
执行以下程序,输出()n = 4def func(str): global n n=3 return str*nfunc("hello")print(n) A: hellohellohellohello B: hellohellohello C: 4 D: 3
用vi编辑器编辑文件/home/u1/Documents/testfile;编辑后的内容为HelloHelloHello查看/home/u1/Documents/testfile文件的最后一行。查看文件的命令是____:
用vi编辑器编辑文件/home/u1/Documents/testfile;编辑后的内容为HelloHelloHello查看/home/u1/Documents/testfile文件的最后一行。查看文件的命令是____:
关于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'