1、min函数 返回给定参数最小值,或者传入的可迭代对象元素中的最小值。 print(min(4、5、6、7、8、9)) 输出 4 传入可迭代对象时,取其元素最小值 s = '65247' print(min(s) 输出 2