![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
qq_3081447939
毕业于东北大学,现为网站负责人,
展开
-
ValueError:too many values to unpacked(expect2)
用pygame作了一个含中文test.txt文件的游戏,pyinstaller -F -w Test.py打包这个程序,之后failed to execute scripts. 打开中间件.spec ,找到a=Analysis(…)中的datas项,把’test.txt’放入中括号里,保存,测试,执行cmd命令: pyinstaller -F -w Test.spec,打包最后得到题目上的一句错误提示。 这个程序在pycharm环境能运行,但打包要求使用迭代语句,将原有程序: for text_line i原创 2020-08-05 15:33:13 · 638 阅读 · 1 评论 -
eclipse启动server出现了Could not publish server configuration for Tomcat .Multiple Context have a path of
打开编辑器左边project Explorer的Server ,再打开Tomcat ,找到server.xml 打开,找到最下面 发现是重复了。删去一个。 很长时间不打开eclipse,需要删去meta中的数据,重新open project from file system.之后就会重复配置。 千万不要去eclipse外部,找tomcat conf 的server.xml ,这里是不一样的。 ...原创 2020-04-04 10:42:14 · 419 阅读 · 0 评论 -
解决django图片加载的问题
1.图片就放在statics文件夹下,settings.py 要追加 STATIC_URL = ‘/statics/’ STATICFILES_DIRS= ( os.path.join(BASE_DIR, “statics”), ) 2.urls.py from django.views.static import serve urlpatterns = [ url(r’^index/’,view...原创 2020-04-02 21:03:02 · 679 阅读 · 0 评论