题库 651 道题目
651 道题目, 当前第 35 / 44 页
141
<pre><code>s = "Hello World" print(s[:5...
Python 单选题 L1 1999年
140
<pre><code>s = "Python编程" print(s[0:6])...
Python 单选题 L1 1999年
139
<pre><code>s = "Python" print(s[-1])</c...
Python 单选题 L1 1999年
138
<pre><code>s = "Python" print(s[2])</co...
Python 单选题 L1 1999年
137
<pre><code>s = " Hello World " s.stri...
Python 单选题 L1 1999年
136
<pre><code>s = "hello" s[0] = "H" prin...
Python 单选题 L1 1999年
135
<pre><code>s = "hello" s = s.upper() p...
Python 单选题 L1 1999年
134
<pre><code>s = "hello" s.upper() print...
Python 单选题 L1 1999年
133
列表的 index() 方法在找不到指定元素时返回 -1,与字符串的 find(...
Python 判断题 L1 1999年
132
在 Python 3 中,list(range(1, 5)) 的结果是 [1, ...
Python 判断题 L1 1999年
131
集合支持使用 |(并集)、&(交集)、-(差集)、^(对称差集)等运算符进行集合...
Python 判断题 L1 1999年
130
lst = lst + [1, 2] 和 lst += [1, 2] 的效果完全...
Python 判断题 L1 1999年
129
列表的 copy() 方法创建的是浅拷贝,如果列表中包含嵌套的列表,内层列表仍然...
Python 判断题 L1 1999年
128
集合的 discard() 和 remove() 方法功能完全相同,没有任何区别...
Python 判断题 L1 1999年
127
可以使用 list(t) 将元组转为列表,也可以使用 tuple(lst) 将列...
Python 判断题 L1 1999年