單項選擇題在Python中,如何返回函數(shù)的多個值?()

A.returnA ,b
B.return (a,b)
C.return [a,b]
D.A和B都對


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題在Python中,如何執(zhí)行一個外部命令?()

A.os.system(command)
B.subprocess.run(command)
C.exec(command)
D.A和B都對

2.單項選擇題在Python中,如何判斷兩個字符串是否相等?()

A.str1==str2
B.str1.equals(str2)
C.str1.isEqual(str2)
D.str1.compare(str2)

3.單項選擇題在Python中,如何聲明一個全局變量?()

A.global var
B.var =global
C.global =var
D.var(global)

4.單項選擇題在Python中,哪個模塊用于機器學(xué)習(xí)?()

A.sklearn
B.TensorFlow
C.PyTorch
D.所有以上的選項

5.多項選擇題在Python中,如何定義一個空集合?()

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