单选题:执行以下代码后将显示什么?* password = 'ILOVEPYTHON'* if password.isalpha():*
执行以下代码后将显示什么?
* 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
* 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