判断题 偏易
#18340

执行下面Python代码后,输出两个True。 print ( "h" in "hello" ) print ( "he" in "hello" ) Copy

执行下面Python代码后,输出两个True。

print("h" in "hello")
print("he" in "hello")
未登录也能判分,登录后才会记录
答案与解析
正确答案:对
解析

“h” in “hello"和"he” in "hello"都为True,因为"h"和"he"都是字符串"hello"的子串