Skip to content
This repository was archived by the owner on Sep 20, 2018. It is now read-only.

Commit 848897f

Browse files
committed
Policy 加了两行注释
1 parent 9add260 commit 848897f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cp15-Policy/langs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import pprint
1+
# conding:utf-8
2+
import pprint # 美化输出
23
from collections import namedtuple
3-
from operator import attrgetter
4+
from operator import attrgetter # 生成按名称提取属性的函数
45
if __name__ == '__main__':
56
ProgrammingLang = namedtuple('ProgrammingLang', 'name ranking')
67
stats = (('Ruby', 14), ('Javascript', 8), ('Python', 7),

0 commit comments

Comments
 (0)