a=["agent_{}".format(i) for i in range(10)]
b={
"agent_{}".format(i):i for i in range(10)}
python 列表生成式 字典生成式
猜你喜欢
转载自blog.csdn.net/ao1886/article/details/115003924
今日推荐
周排行