用户:
夏天in仔查看:0 回复:0 评论:0 创建时间:2024-01-05T20:35:56
【作品展示】

【作品介绍】
请我喝瓶饮料吧!!!谢谢你好心人
【作品源代码】
lst = [1,45,78,0,-1,3,5]
def mymax(lst):
max1 = lst[0]
for i in lst:
if max1 >= i:
max1 = i
return max1
res = mymax(lst)
print(res)
lst = [1, 45, 78, 0, -1, 3, 5]
def mymax(lst):
max1 = lst[0]
for i in lst:
if max1 <= i:
max1 = i
return max1
res = mymax(lst)
print(res)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn