Discuss / Python / 用max&min方法体现pyphon编程思想

用max&min方法体现pyphon编程思想

Topic source

wayxoo

#1 Created at ... [Delete] [Delete and Lock User]

if L==[]: return (None,None) else: return (min(L),max(L))

看清楚题目,用迭代的方式,没必要在我们这堆小白这秀

wayxoo

#3 Created at ... [Delete] [Delete and Lock User]

兄弟,用迭代的方法,评论早就已经已经有了,我只是向大家展示一种思路而已,网上的人戾气果然重


  • 1

Reply