摘要:
五、控制流 1、if语句: 如果if条件为真,程序运行if程序块,否则运行else程序块。else语句是可选的。 例如: # Filename: if.py number = 23guess = int(input('Enter an integer : ')) if guess == number: print('Congratulations, you guessed it.') # New block starts here print('(but you do not win any prizes!)') # New block ends 阅读全文