Python HackerRank|Collections.namedtuple(from collections import namedtuple)
2017-03-06 19:59
731 查看
Dashboard
Python
Collections
Collections.namedtuple()
Python
Collections
Collections.namedtuple()
from collections import namedtuple N = int(input()) Student = namedtuple('Student', input()) ans = 0 for _ in range(N): ans += int(Student(*input().split()).MARKS) print('{0:.2f}'.format(ans/N))
相关文章推荐
- Python HackerRank|DefaultDict Tutorial(from collections import defaultdict)
- Python HackerRank|Collections.deque()(from collections import deque)
- Python HackerRank|Word Order(OrderedCounter)(from collections import Counter, OrderedDict)
- Python HackerRank|Piling Up!(from collections import deque)
- python from collections import namedtuple
- Python HackerRank|Maximize It!(from itertools import product)
- Python HackerRank|Time Delta(from datetime import datetime)
- hackerrank Collections.namedtuple()
- 关于Python3的collections.namedtuple和functools.namedtuple的探讨
- windows7下python2.6 + mysql5.5(No module named MySQLdb/DLL load failed/from sets import ImmutableSet)
- 全网最详细的跑python2.7时出现from mysql import connector ImportError: No module named mysql的问题解决办法(图文详解)
- python 2-2 如何为元组中的每个元素命名, 提高程序可读性-collections.namedtuple
- 解决python种输入from Crypto.Cipher import AES 报错 ImportError: No module named Crypto.Cipher
- windows7下python2.6 + mysql5.5(No module named MySQLdb/DLL load failed/from sets import ImmutableSet)
- 在python用import或者from...import来导入相应的模块
- Python cx_Oracle - import not a valid win32 app or ImportError: No module named cx_Oracle Found
- Python学习之import与from xx import
- Python中import 与from import 的区别
- from.....import 与 import 分类: python 2013-03-05 16:50 239人阅读 评论(0) 收藏
- [转]python基础之---import与from...import....