Python Trouble Cheatsheet
문제: Python2.x: end= 가 syntax 에러가 남. 해결: 아래를 임포트해주면 해결. from __future__ import print_function for i in range(2,10): for j in range(1, 10): print (i*j , end=" ") print(' ') 문제: test.py 를 실행시킬때 아래의 메시지가 나온다면, Error message:-bash: ./test-py.py: python: bad interpreter: No such file or directory or ./test-py.py: line 2: from: command not found 해결: test.py파일 최상단에 interpreter를 넣어준다. #!/usr/bin/python#!..
IT/Python
2018. 1. 23. 06:25
250x250
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Jay
- 미시사가
- BC주
- 밀튼
- 부모님초청이민
- Canada
- RHCE
- ansible
- Red Hat
- 정착서비스
- 온타리오
- 부동산분석
- 우드워킹
- 벌링턴
- cert
- docker
- git proGit
- 인터넷
- Certificate
- TORONTO
- certification
- BTBS
- 토론토정착서비스
- 옥빌
- redhat
- 캐나다
- 토론토
- RHEL
- 캐나다부동산
- basement
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함