728x90
반응형

개발 57

Google Colab (Colaboratory) python library module install, upgrade, uninstall

Google Colab (Colaboratory) python library install 1. Python module install/upgrade/uninstall 1-1. Module install !pip install (module name) ex, !pip install scikit-learn 1-2. Module upgrade !pip install --upgrade (module name) ex, !pip install --upgrade scikit-learn 1-3. Module uninstall !pip uninstall (module name) ex, !pip uninstall scikit-learn 2. Program install, upgrade, remove 2.1 Program..

개발/Python 2021.05.01

A Byte of Python

한글판 번역본 HTML : byteofpython-korean.sourceforge.net/byte_of_python.html A Byte of Python 지금까지 프로그램을 작성할 때, 우리는 데이터를 다루는 명령들의 블록인 함수들의 조합으로 프로그램을 구성하였습니다. 이러한 설계 방식을 절차 지향 프로그래밍 기법이라고 부릅니다. 이 byteofpython-korean.sourceforge.net 원본(영문) HTML : python.swaroopch.com/ Introduction · HonKit "A Byte of Python" is a free book on programming using the Python language. It serves as a tutorial or guide to th..

개발/Python 2021.04.22

문자열 포맷별 출력

문자열 포맷 구분 % 기호 방식 {} 기호 방식 f-strings 방식 출력 결과 문자열 '%s' % 'string' '{}'.format('string') s = 'STRING'; f'{s.lower()}' 'string' 문자 '%c' % 0x41 '{:c}'.format(0x41) f'{0x41:c}' 'A' 십진수 '%d' % 0xFFFF '{:d}'.format(0xFFFF) f'{0xFF00+0x00FF:d}' '65535' 부동소수 '%.2f' % 3.141592 '{:.2f}'.format(3.141592) f'{3.141592:.2f}' '3.14' 16진수 (소문자) '%x' % 65535 '{:x}'.format(65535) f'{65535:x}' 'ffff' 16진수 (대문자) '%..

개발/Python 2021.04.16
728x90
반응형