A、niether
B、not
C、no
D、none
第1题:
第2题:
在主线程中启动一个子线程执行reading函数。 import threading import time import random def reading(): for i in range(10): print("reading",i) time.sleep(random.randint(1,2)) _______________________________ r.setDaemon(False) r.start() print("The End")
A.r=threading.Thread(reading)
B.r=threading.Thread(target=reading())
C.r=threading.Thread(target=reading)
D.r=Thread(target=reading)
第3题:
创建students对象,_______语句可以选出第二个同学的身高。 students数据如下: age height weight 1 19 170 68 2 20 165 65 3 18 175 65
A.students[1,'height']
B.students.loc[2,'height']
C.students.iloc[1, 1]
D.students['height'][3]
第4题:
第5题:
声明并创建一个学生类Student的对象s,下列语法格式正确的是()。
A.Student s = Student();
B.Student s;
C.Student s = new Student();
D.Student s = new ();
第6题:
创建students对象,_______语句可以选出第二个同学的身高。 students数据如下: age height weight 1 19 170 68 2 20 165 65 3 18 175 65
A.students.loc[2,'height']
B.students.iloc[1, 1]
C.students[1,'height']
D.students['height'][3]