变量值: >>> name = 'Eric' 输出时: >>> print('Hello %s, would you like to learn some Python today?' %name) Hello Eric, would you like to learn some Python today? 或者 >>> print('Hello {}, would you like to learn some Python today?'.format(name)) Hello Eric, would you lik...
回答于 2021-09-23 22:04
只要 今天天晴 又或者(or) 老闆加薪,我就出去玩 如果今天下雨了(False),但是老闆加薪(True),請問我該不該出去玩呢?(False) or (True) = True 答案:出去玩 (return True) assert (表達式) 表達式:(True) or (False) = True 表達式:(False) or (False) = False 表達式:(True) or (False) = True 表達式:(True) or...
回答于 2021-09-23 22:00