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