單項(xiàng)選擇題在Python中,如何創(chuàng)建一個(gè)空集合?()

A.set ={}
B.set =set()
C.set =[]
D.set =()


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題在Python中,如何將一個(gè)列表轉(zhuǎn)換成字符串?()

A.’’.join(list)
B.str(list)
C.list.toString()
D.list.str()

2.單項(xiàng)選擇題在Python中,如何讀取文件的內(nèi)容?()

A.file.read()
B.file.readlines()
C.file.readline()
D.所有以上的選項(xiàng)

3.單項(xiàng)選擇題在Python中,如何將一個(gè)字符串轉(zhuǎn)換成小寫?()

A.str.lower()
B.str.tolower()
C.lowercase(str)
D.str.small()

4.單項(xiàng)選擇題在Python中,如何暫停代碼執(zhí)行幾秒?()

A.sleep(seconds)
B.time.sleep(seconds)
C.delay(seconds)
D.wait(seconds)

5.單項(xiàng)選擇題在Python中,如何獲取系統(tǒng)信息?()

A.os.uname()
B.sys.info()
C.platform.uname()
D.sysconfig