问题
玉米玉米不开花
这个作者很懒,什么都没留下…
展开
-
Pyinstaller: 打包成功后出现"failed to execute pyi_rth_pkgres”
解决办法,在conda终端写入这两句:pip uninstall pyinstallerpip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip原创 2020-03-03 23:36:23 · 1427 阅读 · 0 评论 -
错误:W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at transpose_op.cc:199
2019-07-23 10:05:55.269273: W tensorflow/core/common_runtime/bfc_allocator.cc:267] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.16GiB. Current allocation summary follows.2019-07-23 1...原创 2019-07-23 10:28:57 · 12817 阅读 · 2 评论 -
python中出现标红显示:non-default parameter follows default parameter
在编程中出现 non-default parameter follows default parameter这种错误原因是将没有默认值的参数在定义时放在了有默认值的参数的后面,如下所示:def test(self,a=1,b): self.a=a self.b=bSyntaxError: non-default argument follows default arg...原创 2019-07-28 17:17:28 · 6047 阅读 · 0 评论 -
python替换多个字符串的方法
参考:https://blog.csdn.net/liuchengzimozigreat/article/details/85339372import rea = '>123\n'b = re.sub(r'[>\s]','',a)print(b)最后输出结果为:123解释一下这个正则表达式的意思:r’[’:\s ,]*’1:r指明这是一个正则表达式2:[]内是一个字符...原创 2019-07-28 18:52:59 · 904 阅读 · 0 评论