01 2021 档案
摘要:dump将字典转换为json字符串并存入文件中 dumps将字典转换为json字符串 json.dump(dict, open(filename, "w")) json.dumps(dict) json的dump方法比dumps方法多了一个参数,也就是文件名 jsObj = json.dumps(d
阅读全文
摘要:安装TensorFlow报错,出现了了两个标红: twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed. Cannot uninstall 'wrapt'. It is a distutils installed proj
阅读全文
摘要:pip --default-timeout=1000 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
阅读全文
摘要:###将源的链接更改为国内镜像 打开编辑 C:\Users\用户名(此时登录的用户)/.condarc,没有则新建 添加如下内容: channels: - defaults show_channel_urls: true channel_alias: https://mirrors.tuna.tsi
阅读全文