2024-11-27 14:25
1127 hw pa1 #Python 中的邏輯運算子(運算符) #and or not #and temp = int(input("請輸入現在溫度:")) if temp > 0 and temp < 30: print("溫度是適宜的") else: print("溫度是不適宜的") Conclusion: And要前後兩者條件為ture才成立 #or temp = int(input("請輸入現在溫度:")) if temp <= 0 and temp >= 30: print("溫度不適宜") else: print("溫度適宜") Conclusion: Or只要其中一個條件就可以進入了
1
回覆
0
轉發

作者

Kuo Nika
nika_quest
profile
粉絲
23
串文
355+

回覆

轉發

24小時粉絲增長

發文前

21

發文後24小時

21

變化

0 (0.00%)

互動率

(讚 + 回覆 + 轉發) / 粉絲數
4.35%

回覆 (BETA)

最先回覆的內容
發文後用戶內容

© 2025 Threadser.net. 版權所有。

Threadser.net 與 Meta Platforms, Inc. 無關,未經其認可、贊助或特別批准。

Threadser.net 也不與 Meta 的"Threads" 產品存在任何關聯。