python3.8新特性

#海象運算符 #原來 def choice(): s = ' jsadlk '.strip() res = isinstance(s, int) if res: return 'int' else: return 'other' res = choice() #使用了海象運算符以後 s = ' jsadlk '.strip() def
相關文章
相關標籤/搜索