如何在字符串中表示一个反斜杠?

Week 6 上周知识点回顾

Quiz
•
Information Technology (IT)
•
University
•
Medium

Nila Zhang
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
\
/
\\
\/
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪个是格式化字符串的正确用法?
'他叫{name},今年{age}岁'.format(name='小明', age=18)
'他叫{name},今年{age}岁'.format(name='小明')
'他叫{name},今年{age}岁'.format(age=18)
'他叫{name},今年{age}岁'.format()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪个方法可以删除字符串两侧的空白字符?
join()
split()
replace()
strip()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中,字符串对象是可变的吗?
否
不确定
部分可变
是
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
使用哪个方法可以将列表中的元素连接成字符串?
split()
strip()
replace()
join()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中,如何打开一个文件进行写入?
open('file.txt', 'r+')
open('file.txt', 'a')
open('file.txt', 'r')
open('file.txt', 'w')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中,如何将字符串分割成列表?
split()
combine()
join()
partition()
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
CLC Unit 2 Lesson 8,9 and 10 Quiz

Quiz
•
University
15 questions
Pemanfaatan Google Drive untuk Siswa

Quiz
•
11th Grade - University
10 questions
TUGAS INFORMATIKA SABTU, 12 OKTOBER 2024

Quiz
•
7th Grade - University
9 questions
Викторина без названия

Quiz
•
6th Grade - University
10 questions
Week2 上周知识点回顾

Quiz
•
University
10 questions
UNTIRTA I/O QUIZ WEEK 3

Quiz
•
University
10 questions
Week3 上周知识点回顾

Quiz
•
University
15 questions
Linux - podstawy + polecenia konsoli

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade