Python (12) 썸네일형 리스트형 [Python] 필수 Library/Tools 설치(user mode) # sudo apt install python3-testresources # sudo apt install libxcb-xinerama0 # python3 -m pip install --user --upgrade pip setuptools wheel packaging requests opt_einsum # python3 -m pip install --user --upgrade keras_preprocessing --no-deps # python3 -m pip install --user --upgrade numpy scipy matplotlib ipython h5py jupyter spyder pandas sympy nose # python3 -m pip install --user --upgrade sci.. [Python] 파일 입출력 예시 filename = './Lotto645.csv' f = open(filename, 'r') fw = open('./Lotto645_insert.sql', 'wt') for i in range(45): fw.write('insert into T_LOTTO645NUM values (' + str(i+1) + ');\n') fw.write('\n') while True: line = f.readline() if not line: break fw.write('insert into T_LOTTO645 (ROUND, NO1, NO2, NO3, NO4, NO5, NO6, NO7) values (' + line.strip() + ');\n') fw.close() f.close() [Ubuntu 20.04] Python3 Installation # sudo apt update # sudo apt install python3-dev python3-pip python3-venv https://testtube.tistory.com/58 [Ubuntu 18.04] IDLE Python IDE Installation for Python 3: # sudo apt-get update # sudo apt-get install idle3 for Python 2.7: # sudo apt-get install idle-python2.7 참고: https://www.ubuntu18.com/how-to-install-idle-python-ide-on-ubuntu-18-04/ How to install IDLE Python IDE on Ubuntu 18.04 Learn.. [Ubuntu 18.04] IDLE Python IDE Installation for Python 3: # sudo apt-get update # sudo apt-get install idle3 for Python 2.7: # sudo apt-get install idle-python2.7 참고: https://www.ubuntu18.com/how-to-install-idle-python-ide-on-ubuntu-18-04/ How to install IDLE Python IDE on Ubuntu 18.04 Learn how to install IDLE for Python 3 and Python 2. IDLE is available for python 3 and python 2 as two separate packages. www.ubuntu18.com https://testtub.. 이전 1 2 다음