>>> import networkx as nx>>> G1=nx.DiGraph>>> G1.add_edge(1,2)Traceback (most recent call last):File "<pyshell#2>", line 1, in <module>G1.add_edge(1,2)TypeError: unbound method add_edge() must be called with DiGraph instance as first argument (got int instance instead)
這報的是什么錯???代碼如下:
阿波羅的戰(zhàn)車
2023-04-22 17:13:17