下列路径中,不属于相对路径的是
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 Quizizz
8 questions
计算机基础测验

Quiz
•
University
13 questions
數字系統的基本概念與應用

Quiz
•
12th Grade - University
15 questions
Web Scraping 102 - Quiz 2

Quiz
•
University
10 questions
Linux基础

Quiz
•
University
7 questions
计算机基本知识

Quiz
•
University
15 questions
你真的會EXCEL嗎?

Quiz
•
University
10 questions
Computer-System Organization Quiz

Quiz
•
University
11 questions
HTML Basics Quiz

Quiz
•
9th 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