完成程序,实现将一组随机生成的、包含500个100-200之间随机整数的列表进行统计,统计出每个能被4整除的数出现的次数。import randomn_list=[]for i in①:n_list.append(random.randint(100,200))result={}for i in n_list:if(i%4==0):result[i]=②+1for j in result:print("%d出现了%d次"%(j,③))
查看答案
定义类如下:class Hello():def __init__(self,name):self.name=namedef showInfo(self):print(self.name)下面代码能正常执行的 ( )
A. h = Helloh.showInfo()
B. h = Hello()h.showInfo('张三')
C. h = Hello('admin')h.showInfo
D. h = Hello('张三')h.showInfo()
Little Tom the window at half past nine this morning.
A. broke
B. break
C. is breaking
D. was breaking
When I saw Mary, she ______ on the piano.
A. is playing
B. plays
C. was playing
D. played
"Has he seen this film?" " Yes. He ______ it several days ago. "
A. saw
B. has seen
C. had seen
D. was seeing