ubuntu 16.04 LTS에서 python 3.8 설치
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.8
ubuntu 16.04 LTS에서 python 3.8 설치
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.8
다른 시퀀스 자료형과 같이 sorted 함수 사용
items 함수는 Key와 Value의 쌍을 튜플로 묶은 값을 dict_items 객체로 돌려준다.
d = {"TV": 2000000, "냉장고": 1500000, "책상": 350000, "노트북": 1200000, "가스레인지": 200000, "세탁기": 1000000} sd = sorted(d.items(), key=lambda x: x[1], reverse=True) for i in sd: print("{0}: {1}".format(i[0], i[1]))
import operator d = {"TV": 2000000, "냉장고": 1500000, "책상": 350000, "노트북": 1200000, "가스레인지": 200000, "세탁기": 1000000} sd = sorted(d.items(), key=operator.itemgetter(1), reverse=True) for i in sd: print("{0}: {1}".format(i[0], i[1]))
unpack 연산자 *
https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
Managing environments — conda 4.7.0.post2+1e64239b documentation
Conda removes the path name for the currently active environment from your system command. Note To simply return to the base environment, it's better to call conda activate with no environment specified, rather than to try to deactivate. If you run conda d
conda.io
SubWCRev WorkingCopyPath [SrcVersionFile DstVersionFile] [-nmdfe]
이 곳에서 예제도 확인할 수 있다.
공식 홈페이지는 여기
설치.
$ sudo apt-get install libcurl4-openssl-dev
다음 명령어를 통해 빌드옵션을 확인할 수 있다.
$ curl-config --cflags
$ curl-config --libs
아래와 같이 빌드
$ gcc -o test.out test.c -L/usr/lib/x86_64-linux-gnu -lcurl