if statement without a condition

前端 未结 3 659
余生分开走
余生分开走 2020-12-11 03:10
def f1(x,y):
      if x:    
          x = [1,2,3]
          x.append(4)
      else:
          x = 2
      return x + y

L1 = [1,2,3]
L2 = [55,66]
L3 = []
y = 3
prin         


        
3条回答
提交回复
热议问题