2022年9月Python编程等级考试一级真题解析
判断题(共10题,每题2分,共20分)
26、then属于python的保留字
答案:错
考点分析:考查python保留字,python的保留字共有33个,分别有这些:False、None、True、and、as、assert、async、await、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,所以错误
27、在python shell中输出“Hello,我的新朋友,很高兴认识你!”,正确的语句