A. while True: 构成死循环,程序要禁止使用 B. 使用while必须提供循环次数 C. 所有while循环功能都可以用for循环替代 D. 使用while能够实现循环计数
A. = {}if isinstance(a,list):print("{} is list".format(a))else:print("{} is {}".format("a",type(a)))A a is list B. 出错 C. 无输出 D. a is <class 'dict'>
A. -= 1print(a,end=" ")以下选项中描述错误的是:A a -= 1 可由 a = a – 1实现 B. 条件a > 0 如果修改为a < 0 程序执行会进入死循环 C. 使用while 保留字可创建无限循环 D. 这段代码的输出内容为2 1 0