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

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


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題在Python中,如何計(jì)算一個(gè)字符串中的單詞數(shù)?()

A.len(str.split())
B.str.count(’’)+1
C.str.words()
D.countWords(str)

3.單項(xiàng)選擇題在Python中,如何將兩個(gè)列表合并?()

A.list1+list2
B.list1.extend(list2)
C.list1.merge(list2)
D.A和B都對(duì)

4.單項(xiàng)選擇題在Python中,如何獲取系統(tǒng)的當(dāng)前工作目錄?()

A.os.getcwd()
B.sys.cwd()
C.os.currentdir()
D.sys.currentdir()

5.單項(xiàng)選擇題在Python中,如何將字符串轉(zhuǎn)換為小寫(xiě)?()

A.str.lower()
B.str.toLowerCase()
C.toLower(str)
D.lower(str)