![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
you_er_yuan_da_lao
这个作者很懒,什么都没留下…
展开
-
GCN实现节点分类任务
数据处理,数据集采用cora数据集 import dgl from dgl.data import DGLDataset import torch import os import pandas as pd import torch import numpy as np import matplotlib.pyplot as plt import networkx as nx import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" import torch原创 2022-05-26 21:30:39 · 832 阅读 · 0 评论 -
python的reverse操作
reverse注意事项 lt = [1,2,3] l2 = lt.reverse() print(l2) ##输出为None lt = [1,2,3] lt.reverse() print(lt) #输出为逆序 lt = [1,2,3] lt1 = lt lt1.reverse() print(lt, lt1) ##返回的结果会修改原list的值 # [3, 2, 1] [3, 2, 1] lt = [1,2,3] lt1 = lt.copy() lt1.reverse() pr.原创 2020-07-06 22:18:41 · 413 阅读 · 0 评论