学习python
runningwei
这个作者很懒,什么都没留下…
展开
-
pycharm远程连接服务器
参考https://www.cnblogs.com/xiongmao-cpp/p/7856596.html配置pycharm连接服务器,但一直不能从服务器上下载文件(右键没有download from here),经检查发现原因是路径设置有误,路径当做如下配置:配置页面:选择Tools-->Devolopment-->ConfigurationConnection选项卡的Root pa...原创 2018-06-07 10:06:16 · 1531 阅读 · 0 评论 -
Python PIL Image "image file is truncated"问题解决
错误提示:IOError: image file is truncated (5 bytes not processed)1解决方法:from PIL import ImageFileImageFile.LOAD_TRUNCATED_IMAGES = True原因: PIL读取了未上传完的图片,即图中有些数据缺失。可以通过一个设置使其接受这一点。...原创 2018-06-15 14:44:11 · 1405 阅读 · 0 评论 -
pycharm远程服务器跑os.system调用python版本问题
Pycharm远程连服务器跑程序,结果老是报错ImportError: No module named xmltodict然而我明明已经安装了xmltodict。通过在各处测试所调用的python版本,发现问题出在这里os.system('python ' + clean_annotation_path + ' ' + temp_JPEGImages + ' ' + temp_Annotation...原创 2018-06-20 16:22:44 · 1456 阅读 · 0 评论 -
python与shell读同一个配置文件
配置文件config.cfg中格式:name1=aaaaaname2=bbbbbpython读取:from configobj import ConfigObjconfig = ConfigObj(filename)name1 = config['name1']print ("value for name1:", name1)shell读取:source file...原创 2018-12-11 18:02:03 · 765 阅读 · 0 评论