博客
关于我
浙大Python 第3章-7 求最大值及其下标 (20 分)
阅读量:215 次
发布时间:2019-02-28

本文共 196 字,大约阅读时间需要 1 分钟。

专题博客链接



原题题目

插入图片描述



代码实现

numbers = int(input())  string = list(input().split())  nums = list(int(string[i]) for i in range(numbers))  print("%d %d" % (max(nums), nums.index(max(nums))))


提交结果

插入图片描述

转载地址:http://agji.baihongyu.com/

你可能感兴趣的文章
python | jsonschema,一个实用的 验证 JSON 数据结构 Python 库!
查看>>
python课程的中期报告范文_课题研究中期总结报告范文
查看>>
python | lxml,一个超酷的 关于XML/HTML 文档 Python 库!
查看>>
python | mplfinance,一个有趣的金融数据可视化 Python 库!
查看>>
python | nipy,一个强大的关于 神经影像数据分析 的Python 库!
查看>>
python | NLTK,一个强大的 自然语言处理 Python 库!
查看>>
python | nupic,一个强大的 处理时间序列的Python 库!
查看>>
python | orange3,一个神奇的 Python 库!
查看>>
python | pdfminer,一个神奇的 关于PDF 文件的 Python 库!
查看>>