-->
当前位置:首页 > 题库

单选题:执行以下代码后将显示什么?* password = 'ILOVEPYTHON'* if password.isalpha():*

Luz5年前 (2021-05-10)题库1362
执行以下代码后将显示什么?
* password = 'ILOVEPYTHON'
* if password.isalpha():
* print('Invalid, must contain one number.')
* elif password.isdigit():
* print('Invalid, must have one non-numeric character.')
* elif password.isupper():
* print('Invalid, cannot be all uppercase characters.')
* else:
* print('Your password is secure!')

@[A](2)

A. Invalid, must contain one number.
B. Invalid, must have one non-numeric character.
C. Invalid, must contain one number.
Invalid, cannot be all uppercase characters.

D. Your password is secure!



A.Invalid, must contain one number.
B.Invalid, must have one non-numeric character.
C.Invalid, must contain one number.
Invalid, cannot be all uppercase characters.

D.Your password is secure!


答案:A