首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
flycat1626
›
全部回复第 5 页 / 共 5 页
回复总数
82
1
2
3
4
5
❮
❯
2020 年 5 月 20 日
回复了
Yvette
创建的主题
›
Windows
›
Windows Terminal 1.0 来啦
求一发国内盘,下载好慢。。。
2020 年 4 月 29 日
回复了
PanameraM
创建的主题
›
Python
›
问个 Python 代码的小问题,困扰了半天。不会解。
a = [{'a': 1}, {'b': 2}, {'c': 3}]
b = [['c', 'b'], ['c', 'a'], ['b', 'a'], ['c', 'b', 'a']]
temp = {}
for item in a:
temp.update(item)
max = 0
for item in b:
res = 0
for i in item:
res += temp.get(i,0)
if res > max:
max = res
print max
1
2
3
4
5
❮
❯
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
3032 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms ·
UTC 07:07
·
PVG 15:07
·
LAX 00:07
·
JFK 03:07
♥ Do have faith in what you're doing.
❯