![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
cheerup_he
研究方向:可信执行环境,联邦学习。
展开
-
ImportError: Could not find ‘cudart64_90.dll‘错误成功解决方法
tensorflow项目运行出现ImportError: Could not find 'cudart64_90.dll'错误解决方法原创 2022-08-22 16:42:23 · 1469 阅读 · 2 评论 -
Python 列表(List) 的三种遍历(序号和值)方法
Python 列表(List) 的三种遍历(序号和值)方法转载自:https://www.cnblogs.com/pizitai/p/6398276.html#!/usr/bin/env python# -*- coding: utf-8 -*-if __name__ == '__main__': list = ['html', 'js', 'css', 'python'] # 方法1 print '遍历列表方法1:' for i in list:原创 2020-09-06 09:45:21 · 378 阅读 · 0 评论 -
python操作neo4j出现错误:AttributeError: ‘NoneType‘ object has no attribute ‘get_dictionary‘
错误描述:在从neo4j中读取数据的时候,出现这个错误。数据库是有数据,但是一直都是读不到。关系和end结点都是none但是实际数据库是有数据的:这个里面的relationship是数据库中的关系类型,name是关系名。最好换了一种取数据的方式,得到了下面的数据from py2neo import Graph, Node, Relationshipneo_graph = Graph("http://127.0.0.1:7474/browser/", usern原创 2020-09-05 11:38:56 · 3676 阅读 · 2 评论 -
TypeError: ‘type‘ object is not iterable
问题描述:python3在def函数中传入list的时候出现TypeError: 'type' object is not iterable我的list是用下面的方式获得的,value_list是获得的集合中的一些元素,实际上也是一个list。但是将该list传入一个def中会报错。因为是直接用for i in value_list:这种形式遍历的,发现这种形式会报错。但是在函数中改成了def str_join(str_list): # 输入为一个list,将集合中的所有元素直接拼.原创 2020-09-04 21:35:09 · 26362 阅读 · 0 评论 -
python中怎样删除二维数组的一列
#!usr/bin/python#-*-coding:utf-8-*-#python2.7a=[[1,2,3],[4,5,6],[7,8,9]]printmap(lambdax:x[1:],a)#1表示第一列以此类推===============RESTART:C:\Users\Administrator\Desktop\tt.py===...原创 2019-06-27 15:59:11 · 7019 阅读 · 2 评论