pydev

20183215 实验三《Python程序设计》实验报告

╄→гoц情女王★ 提交于 2020-08-16 14:24:04
20183215 2019-2020-2 《Python程序设计》实验三报告 课程:《Python程序设计》 班级: 1832 姓名: 董振龙 学号: 20183215 实验教师:王志强 实验日期:2020年5月16日 必修/选修:公选课 1.实验内容 1.创建服务端和客户端,选择一个通信端口,用Python语言编程实现通信演示程序; 2.要求包含文件的基本操作,例如打开和读写操作。 3.要求发送方从文件读取内容,加密后并传输;接收方收到密文并解密,保存在文件中。 4.程序代码托管到码云。 2. 实验过程及结果 实验开始之前,我设想了一下实验结束后的效果,总觉得光秃秃的控制台缺乏美感(尽管是pycharm),于是,我打算加入GUI图形界面,既然追求美感,就贯彻到底咯。 首先,我打开了一个软件: wxFormBuilder (这里我参考了一个 大佬的博客 ),打开后的界面是这样的: 我们先选择Forms点击Frame,然后再建立几个boxsizer,加入一些必备控件textctrl、button,如图,其中,设置bsizer5的proportion为9,使其看上去更加和谐 最后进行一些细节上的设置,例如按钮名称以及事件绑定。最终效果如图: 其中三个按钮分别绑定事件: 保存之后可以导出对应的 .py文件 ,基本重复上述操作,可以得到客户端的图形界面和对应的 .py文件

利用Eclipse编辑器创建Django项目开发环境-python开发工具第二篇

做~自己de王妃 提交于 2020-08-10 07:35:05
step1:安装Eclipse插件pyDev(有三种方法) 由于国外网站,如果在大陆,方法2、3通常由于网络原因会超时,成功概率较低; 方法1最稳妥,网速虽然慢,慢慢下还是可以下载下来的。 方法1.下载插件包,解压放到eclipse插件目录 ,重启Eclipse即可 方法2.利用Eclipse Marketplace安装 Help->Eclipse Marketplace->搜索pyDev->install 方法3.利用Install New Software安装 Help->Install New Software 默认下一步即可 step2:python环境安装 这步很简单,官网windows安装包,点击安装即可 我的上一篇博文也是有介绍的,只看python环境安装部分即可 https://my.oschina.net/guiguketang/blog/3142254 step3:安装自己要使用的django 默认安装 最新版本,通常使用pip安装, >pip install django 指定版本安装 >pip install django=1.11.14 指定源站安装 (超时解决方案) >pip install -i https://pypi.douban.com/simple django step4:Eclipse创建django项目 创建后的目录结构 step5

Close pre-existing figures in matplotlib when running from eclipse

不羁岁月 提交于 2020-05-24 20:59:05
问题 My question is simple: I have a python script that generates figures using matplotlib. Every time i run it it generates new windows with figures. How can I have the script close windows that were opened the previous time it ran? the analogous command in matlab is to put 'close all' at the beginning of your matlab script. I have seen several suggestions to do something like import matplotlib.pyplot as plt plt.close("all") This solution works if you run your script from the python shell, eg

Can Pylint error checking be customized?

爷,独闯天下 提交于 2020-05-24 17:09:48
问题 I am using pydev where I have set up pylint. The problem is that even inside the comments, pylint reports warnings. I was looking to disable any sort of checking inside any line or a block comment. Also, I wish to follow camelCase naming convention instead of underscores for variables and arguments in my code. Is there any way to specify such a rule without inserting my code with any pylint: disable comments? 回答1: You can globally disable warnings of a certain class using pylint --disable

Can Pylint error checking be customized?

不问归期 提交于 2020-05-24 17:09:47
问题 I am using pydev where I have set up pylint. The problem is that even inside the comments, pylint reports warnings. I was looking to disable any sort of checking inside any line or a block comment. Also, I wish to follow camelCase naming convention instead of underscores for variables and arguments in my code. Is there any way to specify such a rule without inserting my code with any pylint: disable comments? 回答1: You can globally disable warnings of a certain class using pylint --disable

python3 Debug报错 Traceback (most recent call last)

百般思念 提交于 2020-05-04 00:37:06
记录一下,刚入门学习python3,模块可以run,但是debug报错 下面贴出报错信息 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- D:\Anaconda\python.exe "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\ pydevd.py " --multiproc --qt-support=pyside --client 127.0.0.1 --port 6835 --file D:/PythonDemo/code/ cal.py Traceback (most recent call last): File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\ pydevd_cython_wrapper.py ", line 2, in <module> from _pydevd_bundle_ext.pydevd_cython

[zz] Python 3.7 anaconda environment

核能气质少年 提交于 2020-05-03 23:58:03
https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error C:\Users\abhil\AppData\Local\Continuum\anaconda3\envs\HeisenbergPy37\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py" --mode=client --port=63950 Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py", line 5, in <module> from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client File "C:\Program Files\JetBrains\PyCharm