
Python
grubly
这个作者很懒,什么都没留下…
展开
-
Windows下Python3.6安装第三方模块
一、 官网下载安装包: 官网网址:https://www.python.org/ 我下载的是3.6.3版本,如下图: 二、 安装安装包, 1、 直接双击运行 2. 选择Customize installation,一定要勾选Add_Python 3.6 to PATH,防止手工添加环境变量 3.选择安装的属性,Documentation、pip、tcl/t转载 2018-01-22 21:07:29 · 11012 阅读 · 2 评论 -
python 写txt文件时 特殊语言编码出错
with open (filename, 'a) as f:打开时用这种方法在写入韩文时,提示UnicodeEncodeError: 'gbk' codec can't encode character '\uc5fd' in position 16: illegal multibyte sequence改写成with open (filename, 'a', errors='ignore原创 2018-01-27 19:35:31 · 711 阅读 · 0 评论 -
pycharm 拼音检查
pycharm typoTypo:In word ‘uname’ less...(Ctrl+F1)spellchecker inspection helps locate typos and misspelled in your code,comments and literals, and fix them in one click.虽然对编译没有影响,但是我转载 2018-01-27 17:36:08 · 4998 阅读 · 1 评论 -
pycharm 设置 默认信息
Pycharm新建模板默 在pycharm使用过程中,对于每次新建文件的shebang行和关于代码编写者的一些个人信息快捷填写,使用模板的方式比较方便。 方法如下: 1.打开pycharm,选择File-Settings 2.选择Editor--Color&Style--File and Templates--Python-Script3.转载 2018-01-27 17:28:08 · 8796 阅读 · 0 评论 -
Python(7) 编写规范 pep8 的问题笔记
在学习过程中有如下问题,做个记录。 以前没有注意的问题1)一行列数 : PEP 8 规定为 79 列,这个太苛刻了,如果要拼接url一般都会超。一个函数 : 不要超过 30 行代码, 即可显示在一个屏幕类,可以不使用垂直游标即可看到整个函数。一个类 : 不要超过 200 行代码,不要有超过 10 个方法。一个模块 : 不要超过 500 行。2)不要在一句impor转载 2018-01-10 21:44:22 · 407 阅读 · 0 评论 -
Ubuntu16.04安装中文输入法
1、先安装语言包 System Settings–>Language Support–>Install/Remove Languages选中chinese,点击Apply应用即可,等待下载安装完成。2、安装ibus框架 sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt43、转载 2018-01-08 16:07:02 · 320 阅读 · 0 评论 -
Ubuntu16.04安装中文输入法
1、先安装语言包 System Settings–>Language Support–>Install/Remove Languages选中chinese,点击Apply应用即可,等待下载安装完成。2、安装ibus框架 sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt43、转载 2018-01-08 14:44:06 · 378 阅读 · 0 评论 -
installed beautifulsoup4-4.6.0
用管理员用户打开cmd命令执行器Microsoft Windows [版本 10.0.14393](c) 2016 Microsoft Corporation。保留所有权利。C:\WINDOWS\system32>cd "c:\Program Files (x86)\Python\Scripts"c:\Program Files (x86)\Python\Scrip原创 2018-01-22 21:27:17 · 684 阅读 · 0 评论