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

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
13 questions
File Processing in C++ Quiz

Quiz
•
University
15 questions
Mastering Python File Handling

Quiz
•
University
15 questions
Perl

Quiz
•
University
15 questions
Jenis-Jenis Virus Komputer

Quiz
•
12th Grade - University
10 questions
Keamanan Berbagi File

Quiz
•
10th Grade - University
15 questions
STP_Integrasi aplikasi

Quiz
•
9th Grade - University
10 questions
Teste de revisão - Liguagem C

Quiz
•
University
10 questions
Basic file operations

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade