Thief of Wealth
python set없이 중복제거
개발/Python 2019. 5. 24. 10:04

원래 set을 사용하면, 중복없게 할 수 있으나, 순서가 유지되지 않는다는 단점이 있다. 순서를 유지하고 싶으면서, iterable한 자료형에서 중복제거를 하고 싶다면 from collections import OrderedDictlist2 = ['1','2','3','4','5']print( list(OrderedDict.fromkeys(list2)) )출처:https://pwnbit.kr/87

pyinstaller 로 실행파일 만들기
개발/Python 2019. 5. 24. 00:57

https://wikidocs.net/21952 pyinstaller -w -F grid_layout.py

ipynb 주피터노트북 파일 py로 변환하기
개발/Python 2019. 5. 24. 00:56

jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb

mac root 비밀번호 변경하기
개발/Mac 2019. 5. 23. 15:18

dsenableroot를 터미널에 친다. 끝.

딥러닝 복습하기
개발/기타 2019. 5. 22. 01:34

https://datascienceschool.net/view-notebook/661128713b654edc928ecb455a826b1d/

nltk download SSL error
개발/Python 2019. 5. 22. 01:16

import nltk import ssl try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context nltk.download()해결.

mac tensorflow 설치
개발/Python 2019. 5. 22. 00:36

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

Jupyter notebook 명령어로 안켜질때
개발/Python 2019. 5. 22. 00:21

python3 -m IPython notebook 쓰면 바로 켜짐

profile on loading

Loading...