This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #赋值 | |
| phone=input("你用的是苹果手机还是安卓手机") | |
| car=input("你开车的是特斯拉吗") | |
| cat=int(input("猫花了多少钱")) | |
| house=input("你的房子是在北上广深吗") | |
| shop=input("你去山姆超市吗") | |
| #判断 | |
| if phone=="苹果手机" and car=="是" and cat>=5000 and house=="是" and shop=="去": | |
| print("你是苹果思维,尊贵的苹果人") | |
| print("开特斯拉,养苹果猫,住苹果房子,逛苹果超市") |