"Python"의 두 판 사이의 차이
(→split) |
|||
21번째 줄: | 21번째 줄: | ||
=== split === | === split === | ||
− | + | https://www.w3schools.com/python/ref_string_split.asp | |
==에러== | ==에러== |
2019년 12월 8일 (일) 06:05 판
목차
python2
pip 설치
$ sudo apt install python-pip
패키지 설치
$ python -m pip install 패키지명
python3
https://docs.python.org/ko/3/howto/index.html
pip3 설치
$ apt install python3-pip
패키지 설치
$ sudo pip3 install 패키지명
웹 크롤링
string
split
https://www.w3schools.com/python/ref_string_split.asp
에러
UnicodeDecodeError: 'ascii' codec can't decode byte
import sys 이후에 다음 코드 추가
reload(sys) sys.setdefaultencoding('utf-8')