ref
https://blog.csdn.net/sasoritattoo/article/details/12451359
note
代碼中經常會有變量是否爲None的判斷,有三種主要的寫法:
第一種是if x is None
;
第二種是 if not x:
;
第三種是if not x is None
(這句這樣理解更清晰if not (x is None)
) 。
https://blog.csdn.net/sasoritattoo/article/details/12451359
代碼中經常會有變量是否爲None的判斷,有三種主要的寫法:
第一種是if x is None
;
第二種是 if not x:
;
第三種是if not x is None
(這句這樣理解更清晰if not (x is None)
) 。
繼續運行 ?* 回憶上次內容 上次使用shell環境中的命令 命令 作用 c