6-文件操作

Quiz
•
Computers
•
University
•
Medium

Yilin Chen
Used 20+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
下列路径中,不属于相对路径的是
./Python/filename.txt
../Python/filename.txt
C:/Python/filename.txt
../../filename.txt
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
open函数中,写入文件,但是不会覆盖文件的mode是
r
w
x
a
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
open函数中,只有在文件不存在时才会创建并写文件的mode是
r
w
x
a
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
根据下图展示的代码,返回的结果为:
str
tuple
list
dict
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
根据下图展示的代码,返回的结果为:
str
tuple
list
dict
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
处理python代码异常使用的代码块是:
try-except
if-else
while
for
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
已知某个文本(gw.txt)中的内容为 'hello world' ,请问经过如下操作之后得到的文件中的内容为:
hi
''
hillo world
hello worldhi
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
随堂测验-网络爬虫

Quiz
•
University
15 questions
软件工程 - 作业 5

Quiz
•
University
8 questions
以文塑旅、以旅彰文:看看你对文旅的了解程度

Quiz
•
University
10 questions
Cinnamon AI

Quiz
•
University
5 questions
ICT王者爭霸戰

Quiz
•
University
15 questions
安全操作測驗

Quiz
•
University
6 questions
三年級英文打字練習2

Quiz
•
3rd Grade - University
12 questions
simple

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University