对于while保留字,以下选项中描述正确的是()
(A)while True: 构成死循环,程序要禁止使用
(B)使用while必须提供循环次数
(C)所有while循环功能都可以用for循环替代
(D)使用while能够实现循环计数
参考答案
继续答题:下一题


更多Python编程试题
- 1Python 中定义函数的关键字是_______
- 2运行下方代码段,屏幕上会打印出一个整数,则①处可以填写( )。class convert: def __init__(self,name):__________self.name = name__________self.__num = 4 def to_int(self):__________return int(self.name)n = convert(8.5)print(①)
- 3以下属于 Python 脚本程序转变为可执行程序的第三方库的是:
- 4关于Python遍历循环,以下选项中描述错误的是 ()
- 5Python序列类型包括字符串、列表、元组三种;字典是Python中唯一的映射类型。