布尔运算的优先级(按从高到低的顺序)是:
A. !=,==,not,or,and
B. ==,!=,and,not,or
C. !=,==,not,and,or
D. ==,!=,not,and,or
从键盘读取年龄的命令是:>>>age=input('howoldareyou?')则age变量接收到的值属于什么类型?
A. 整数
B. 浮点数
C. 字符串
D. 数字
下列程序的执行结果为()a={'name':'wang','age':'18'}b={'age':'16',class':'2'}a.update(b)print(a)
A. {'name':'wang','age':'18'}
B. {'name':'wang','age':'18','age':'16','class':'2'}
C. {'name':'wang',age':'16','class':'2'}
D. {'name':'wang','age':'18','class':'2'}
代码:>>>lst=[]>>>lst.extend('python')执行后的lst为:
A. ['python']
B. ['p','y','t','h','o','n']
C. 'python'
D. 'p','y','t','h','o','n'