单选题 在Python中,如何正确地定义一个函数?
A、deffunction_name():
B、functionfunction_name():
C、definefunction_name():
D、funcfunction_name():
单选题 在Python中,如何正确地创建一个集合?
A、set={1,2,3}
B、set=[1,2,3]
C、set=(1,2,3)
D、set={1:2,3:4}
单选题 下列哪个不是Python的基本数据类型?
A、int
B、float
C、str
D、list
单选题 Python中,用于表示逻辑“真”的关键字是什么?
单选题 Python中,如何正确地创建一个元组?
A、tuple={1,2,3}
B、tuple=[1,2,3]
C、tuple=(1,2,3)
D、tuple=1,2,3
单选题 Python中,如何正确地定义一个类?
A、classClassNam
B、defclassClassNam
C、classClassName():
D、defClassNam
单选题 在Python中,如何将字符串转换为整数?
A、int(strin
B、string(int)
C、str(int)
D、convert(string,int)
单选题 在Python中,如何正确地导入模块?
A、importmodule_name
B、includemodule_name
C、loadmodule_name
D、usemodule_name