2022年9月电子学会青少年编程Python等级考试一级真题解析(Python一级)
二、判断题(共10题,共20分)
26.then属于Python的保留字。( )
标准答案: 错误
试题解析: 本题考查python保留字,python中有33个保留字: False,None, True, and, as, assert, break, class, continue, def, del, elif, else, except, finally, for, from,global, if, import, in, is, lambda, nonlocal, not, or, pass, raise, return, try, while, with, yield;从而then不属于Python的保留字,所以错误
27.在Python shell中输出“Hello,我的新朋友,很高兴认识你!”,正确的语句是print(Hello,我的新朋友,很高兴认识你!)。( )
标准答案: 错误
试题解析: 本题考查输出语句,当print输出字符串的时候,一定要用引号引起来,所以错误
28.在Python中,"2022"与2022都属于字符串。&