python踩坑第一天

其实不是第一天,记录一下吧
1、 Q:FileNotFoundError: [Errno 2] No such file or directory,无法读取excel;
excel和代码不在一个子文件夹里面。
2、Q:Windows MemoryError: Unable to allocate 34 GiB for an array with shape;
磁盘扩容,参考链接:https://blog.csdn.net/com_fang_bean/article/details/108553458
3、Q: RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x4632 and 4611x200)
我的问题是,定义的state数量和给的state-dim不一致
4、Q:TypeError: only size-1 arrays can be converted to Python scalars
把list 用np.array 强制转化
5、Q:ValueError: math domain error
log(v),v=0,增加一个极小值。
参考链接:https://blog.csdn.net/weixin_40583722/article/details/121338622

先这样

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值