- 博客(136)
- 收藏
- 关注

原创 Python学习笔记22(读写模式)
1.‘w’模式&‘w+’模式1.1 ‘w’模式# 利用‘w模式’往空文件里写入内容file_name = 'milktea11'# 模式指定为'w',只会往文件内写入内容,并且写入的内容都会覆盖原文件内容,这里的文件milktea11.txt并不存在,利用'w‘模式会自动创建一个对应名称的文件with open(file_name, 'w', encoding='utf-8')as file_object: # write()不会在我们写入的文本最后添加换行符,要想产生换行效果,
2021-03-26 17:35:11
257
5

原创 动态规划解决0-1背包问题的个人理解
2020/12/29:学习内容:动态规划解决0-1背包问题学习疑问:在公式 v(n,c)=value(n)+v(n-1,c-weight[n])中,如果说第n件物品的价值不为零,并且包的容量可以容纳它,那么第n件物品肯定放入包内,为什么还要和v(n,c)=v(n-1,c)的情况进行比较呢?(已经解决,博客内有个人理解)学习收获:(1)解决了疑问,掌握了利用动态规划思想解决0-1问题的核心思想;(2)独立实现代码部分(说实话本人是个代码白痴,已经两年没碰代码了)1.问题描述什么是0-1背包问题
2020-12-30 09:27:47
598
2
原创 服务器上配置jupyter,提示Invalid credentials如何解决
如何解决jupyter配置过程中遇到的"Invailid credentials"这个问题
2023-12-14 15:33:14
4655
3
原创 ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none) ERROR
ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none) ERROR: No matching distribution found for mindspore
2023-09-25 14:45:20
572
原创 利用scipy中的minimize,method指定为BFGS,提示“Desired error not necessarily achieved due to precision loss”
“Desired error not necessarily achieved due to precision loss”
2022-09-30 09:08:12
2486
原创 对plot_surface()以及meshgrid()的详细理解
如何利用plot_surface()绘制三维图,如何理解网格化,如何用自己定义的函数定义Z对应的数据
2022-05-15 17:01:22
15043
2
原创 利用anaconda prompt打开jupyter notebook,提示无法定位程序输入点
利用anaconda prompt创建虚拟环境,打开jupyter notebook提示无法定位程序输入点
2021-12-20 09:11:47
2029
1
原创 ERROR: pip‘s dependency resolver does not currently take into account all the packages that are ....
解决办法:根据提示信息,利用pip安装缺失的daal但是报错如下:ERROR: Cannot uninstall 'TBB'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.解决办法:pip install daal --upgrade --ig
2021-12-16 16:56:49
4158
转载 scipy.optimize中minimize函数的参数
发现了一篇不错的文章,特此记录:scipy.optimize优化器的各种使用_千寻的博客-优快云博客_scipy.optimizehttps://blog.youkuaiyun.com/jiang425776024/article/details/87885969?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.highlightword
2021-12-14 15:05:59
2323
原创 from qiskit.providers.aer import QasmSimulator报错
如何解决ImportError: DLL load failed while importing controller_wrappers: 找不到指定的模块。
2021-11-26 17:29:00
2163
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人