
Python
1. 学习python的过程
2. 汇总使用python过程中出现的问题及解决方案
Pansanday
Talk is cheap, go through my blog.
展开
-
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 78: illegal multibyte sequence
问题描述想使用python的pipreqs命令生成项目所需的依赖,执行报出编码错误C:\Projects\dc>pipreqs .Traceback (most recent call last): File "c:\coding\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", ...原创 2019-05-20 15:22:18 · 3432 阅读 · 0 评论 -
python安装模块方法
安装pip1. 下载:https://bootstrap.pypa.io/get-pip.py2. 执行命令: python get-pip.py安装beautifulsoup4方法一:pip install beautifulsoup4方法二:1. 下载该模块https://www.crummy.com/software/BeautifulSoup/bs4/download/4...原创 2019-04-18 11:04:28 · 5397 阅读 · 0 评论 -
python安装lib库
问题描述:在开发过程中,会经常遇到这样一个问题,缺少module,如:import requestsfrom bs4 import BeautifulSoupimport os这里我需要引入requests和bs4,但是在我的python Lib目录中却没有,编译器会报如下错误:Traceback (most recent call last): File "C:/Py...原创 2019-04-17 14:16:15 · 11737 阅读 · 1 评论 -
windows无管理员权限安装python
1. 下载页面:https://www.python.org/downloads/release/python-2716/下载页面中的Windows x86-64 MSI installer,下载后的结果形如:python-2.7.16.amd64.msi2.进入cmd命令行,cd到msi文件所在位置3.执行以下命令进行安装:msiexec /a python-2.7.16....原创 2019-04-17 10:38:59 · 8078 阅读 · 1 评论 -
python 比较大小
ex3.pyprint("I will now count my chickens:")print('Hens', 25 + 30 / 6)print("Roosters", 100 - 25 * 3 %4)print("Now I will count the eggs:")print(3+2+1-5+4%2-1/4+6)print("Is it true that 3+2&...原创 2018-04-09 15:06:25 · 7858 阅读 · 0 评论 -
python 输出及乱码解决
ex1.py文件# coding: utf-8print "hello world!"print "Hello Again"print "I like typing this."print "This is fun."print 'Yay ! Pring.'print "I'd much rather you 'not'."print 'I "said" do n原创 2018-04-09 11:34:12 · 1788 阅读 · 0 评论