Python 中空字符串用於條件表達式的方法

import string s = '' if s is None: print('\'\' == None') else: print('\'\' != None') if not s: print('\'\' == False') else: print('\'\' != False') if s == False: print('Can use \'\' == Fal
相關文章
相關標籤/搜索