python3.8新特性

#海象运算符 #原来 def choice(): s = ' jsadlk '.strip() res = isinstance(s, int) if res: return 'int' else: return 'other' res = choice() #使用了海象运算符以后 s = ' jsadlk '.strip() def
相关文章
相关标签/搜索