Using Python's max to return two equally large values

前端 未结 6 1869
小鲜肉
小鲜肉 2020-11-30 13:29

I\'m using Python\'s max function to find the largest integer in a dictionary called count, and the corresponding key (not quite sure if I\'m saying it properly

6条回答
  •  一整个雨季
    2020-11-30 14:14

    To print a list without bucket. use :

    ' '.join(map(str, mylist))
    

    or, more verbosely:

    ' '.join(str(x) for x in mylist)
    

提交回复
热议问题