5.2指定节点的属性 · #创建时设置 · G.add_node(1, time='5pm') · G.add_nodes_from([3,4], time='2pm',color='g') · #直接设置 · G.nodes[1]['room'] = 714 · G ...
確定! 回上一頁