git 사용법
git bash
cd TIL-dongsik
마스터 => git init
git add .
git commit -m “ “
| $ git commit -m “Day_01 | 19.01.02 | startcamp” |
git push -u origin master // -u 는 upstream ,이걸해주면 나중에는 git push만으로 업로드 가능
python git ignore
git bash 에 touch .gitignore ( .을 붙이면 숨김파일)
code . 하게되면 vs코드가 열림
그 후 gitignore를 열어서 붙여주면 됨
| #Byte-compiled / optimized / DLL fil |
|---|
| pycache/ |
| *.py[cod] |
| *$py.class |
| # C extensions |
| *.so |
| # Distribution / packaging |
| .Python |
| build/ |
| develop-eggs/ |
| dist/ |
| downloads/ |
| eggs/ |
| .eggs/ |
| lib/ |
| lib64/ |
| parts/ |
| sdist/ |
| var/ |
| wheels/ |
| share/python-wheels/ |
| *.egg-info/ |
| .installed.cfg |
| *.egg |
| MANIFEST |
| # PyInstaller |
| # Usually these files are written by a python script from a template |
| # before PyInstaller builds the exe, so as to inject date/other infos into it. |
| *.manifest |
| *.spec |
| # Installer logs |
| pip-log.txt |
| pip-delete-this-directory.txt |
| # Unit test / coverage reports |
| htmlcov/ |
| .tox/ |
| .nox/ |
| .coverage |
| .coverage.* |
| .cache |
| nosetests.xml |
| coverage.xml |
| *.cover |
| .hypothesis/ |
| .pytest_cache/ |
| # Translations |
| *.mo |
| *.pot |
| # Django stuff: |
| *.log |
| local_settings.py |
| db.sqlite3 |
| # Flask stuff: |
| instance/ |
| .webassets-cache |
| # Scrapy stuff: |
| .scrapy |
| # Sphinx documentation |
| docs/_build/ |
| # PyBuilder |
| target/ |
| # Jupyter Notebook |
| .ipynb_checkpoints |
| # IPython |
| profile_default/ |
| ipython_config.py |
| # pyenv |
| .python-version |
| # celery beat schedule file |
| celerybeat-schedule |
| # SageMath parsed files |
| *.sage.py |
| # Environments |
| .env |
| .venv |
| env/ |
| venv/ |
| ENV/ |
| env.bak/ |
| venv.bak/ |
| # Spyder project settings |
| .spyderproject |
| .spyproject |
| # Rope project settings |
| .ropeproject |
| # mkdocs documentation |
| /site |
| # mypy |
| .mypy_cache/ |
| .dmypy.json |
| dmypy.json |
| # Pyre type checker |
| .pyre/ |
mook
udacity
edx
coursera
scratch
이하생략
Python
파이썬 자습서를 베이스로 진행
https://docs.python.org/ko/3.6/tutorial/index.html
파이썬 용이하게 하기 위한 주피터(jupyter) 사용
-
pip install jupyter
-
jupyter notebook 명령어 실행
현재 위치한 곳에서 주피터노트북이 켜짐
- new - python 3
shift + enter 아래에 쉘이 있으면 생성 x
alt + enter 그냥 쉘 생성
ctrl + enter 빌드
h = 단축키(help)
dd = 파란색인 상태에서 쉘 지우기
초록색창 = 수정가능, 현재 쉘
파란색창 = 방향키를 사용해 쉘을 타게팅 가능
Study_start
str() : 스트링타입으로 타입 변환
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#str() 이미 있는 식별자의 이름으로 변수를 정하면 함수 호출이 안됨
str = "hihi"
str(5)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-11-86bd572e418e> in <module>
1 str = "hihi"
----> 2 str(5)
TypeError: 'str' object is not callable
#변수는 호출이 가능하지 않다.
#호출이 가능한건 함수
#이 뒤에 코드들에 영향이 가기 때문에 변ㅅ를 삭제
del str
기본문법
– jupyter notebook으로 확인