ValueError: max() arg is an empty sequence

前端 未结 5 2419
礼貌的吻别
礼貌的吻别 2021-01-03 18:37

I\'ve created a GUI using wxFormBuilder that should allow a user to enter the names of \"visitors to a business\" into a list and then click one of two buttons to return the

5条回答
  •  半阙折子戏
    2021-01-03 18:41

    try parsing a default value which can be returned by max if length of v none

    max(v, default=0)
    

提交回复
热议问题