Discuss / Python / L=None 是什么意思?为什么不写L=[ ]

L=None 是什么意思?为什么不写L=[ ]

Topic source

def add_end(L=None): # L=[]也可以为什么用none if L is None: L = [] L.append('END') return L


  • 1

Reply