判断题
偏易
#18340
执行下面Python代码后,输出两个True。 print ( "h" in "hello" ) print ( "he" in "hello" ) Copy
执行下面Python代码后,输出两个True。
答案与解析
正确答案:对
解析
“h” in “hello"和"he” in "hello"都为True,因为"h"和"he"都是字符串"hello"的子串