- 博客(3)
- 问答 (1)
- 收藏
- 关注
原创 python-杂记
第三方库 tensorflow 报错: graph = tf.get_default_graph() AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’ 解决: tensorflow2.0以后版本不兼容旧版本,可以改为: graph = tf.compat.v1.get_default_graph() ...
2021-01-11 11:46:07 94
原创 python实现0-1背包算法
-- coding:utf -8 -- import random total_weight = 200 weight = [random.randint(1,100) for _ in range(10)] value = [random.randint(1,100) for _ in range(10)] print(“weight = {}”.format(weight)) print(“v...
2019-11-20 16:10:10 270
空空如也
c和python联编
2022-06-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人