题库 651 道题目
651 道题目, 当前第 32 / 44 页
186
在 Python 中,可以通过索引赋值来修改字符串中的某个字符,如 s[0] =...
Python 判断题 L1 1999年
185
可以使用索引访问字符串中的单个字符,如 s[0] 可以获取字符串 s 的第一个字...
Python 判断题 L1 1999年
184
执行 s = "hello"; s.upper() 后,变量 s 的值变为 "H...
Python 判断题 L1 1999年
183
字符串一旦创建就不能被修改,因此字符串在 Python 中属于"不可变"类型。
Python 判断题 L1 1999年
182
<pre><code>print(ord("A"))</code></pre> ...
Python 单选题 L1 1999年
181
<pre><code>path = r"C:\new\test" print(...
Python 单选题 L1 1999年
180
<pre><code>print("hello\nworld")</code><...
Python 单选题 L1 1999年
179
<pre><code>print(f"集合是{{1, 2, 3}}")</cod...
Python 单选题 L1 1999年 题号:__custom__
178
<pre><code>name = "Alice" print(f"|{nam...
Python 单选题 L1 1999年
177
<pre><code>pi = 3.14159 print(f"圆周率:{pi:...
Python 单选题 L1 1999年
176
<pre><code>words = ["a", "b", "c"] # 以下...
Python 单选题 L1 1999年
175
<pre><code>words = ["hello", "world", "p...
Python 单选题 L1 1999年
174
<pre><code>s = "apple,banana,orange" pr...
Python 单选题 L1 1999年
173
<pre><code>s = "hello world python" resu...
Python 单选题 L1 1999年
172
<pre><code>s = "hello" s.replace("h", "...
Python 单选题 L1 1999年