1. temp = input('请输入:')
    2. 请输入:666
    3. if temp == 'Yes'or'yes':
    4. print("if 执行了")
    5. else:
    6. print("else 执行了")
    7. # 666先于‘Yes’进行ASCII比较,结果为False,
    8. False再与‘yes’进行or运算,输出为‘yes’,
    9. 因此if语句执行完之后输出存在,所以执行if程序块的输出。比较完成后执行print(‘if执行了!’)