6-文件操作

6-文件操作

University

10 Qs

quiz-placeholder

Similar activities

Pembuatan E-Book

Pembuatan E-Book

University

10 Qs

電資營2023

電資營2023

University

10 Qs

MS WORD REVIEW

MS WORD REVIEW

University

10 Qs

簡報診療室Ⅱ-個人競賽大考驗

簡報診療室Ⅱ-個人競賽大考驗

University

10 Qs

科技領綱重要內涵

科技領綱重要內涵

University

12 Qs

Ingram Micro Annual Dinner 2023

Ingram Micro Annual Dinner 2023

University

12 Qs

Tools Data Science

Tools Data Science

University

10 Qs

113逢甲資電系茶會Quizizz

113逢甲資電系茶會Quizizz

University

10 Qs

6-文件操作

6-文件操作

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Yilin Chen

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

根据下图展示的代码,返回的结果为:

str

tuple

list

dict

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

根据下图展示的代码,返回的结果为:

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

Media Image

已知某个文本(gw.txt)中的内容为 'hello world' ,请问经过如下操作之后得到的文件中的内容为:

hi

''

hillo world

hello worldhi

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?