블로그
-
alias로 명령어 약자 사용하기
예시) # alias Python v3 !! alias py='python3' 2. source ~/.bash_profile로 적용. 3. 적용한 약자로 명령어 실행 확인. 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.
blog.naver.com · 2021.02.17
-
[Python] 여러 노드로 ping check script
Python3 기준입니다. python module중에 os라는 모듈은 shell에 대한 명령줄을 그대로 입력할 수 있게 해줍니다. 물론, List나 dictionary로도 가능하고, 리터럴로 묶으셔도 가능합니다. 2. for 문을 이용하여 등록된 튜플을 Loop하였습니다. 3. ping 결과값을 /dev/null로
blog.naver.com · 2021.02.17
-
:: 파이썬 라이브러리를 활용한 데이터 분석 2판 Python for Data Analysis
데이터 분석은 요즘 개인적으로 가장 관심있어 하며 스터디하고 있는 분야입니다. 그래서 차근차근 파이썬도 공부하고 있었고, 통계에 대한 스터디도 틈틈이 하고 있었습니다. 최근에 몇몇 선생님들과 온라인으로 모여 데이터 분석 스터디도 막 시작하면서 데이터 분석에 관련한 자료와 책들을 수집(?
blog.naver.com · 2020.10.26
-
[python]for,break, list comprehension, continue, enumerate, count, while
파이썬 반복문 for, while for idx in : 리스트, 딕셔너리 , 문자 등 for idx in range(start, stop, step) for 루프를 활용해 리스트에 값 넣기 입력받은 성적의 총합과 평균을 구하기 리스트 자료형에 들어있는 개수 세어보기 1~1000까지의
blog.naver.com · 2020.08.13
-
[파이썬] VS Code에서 실행버튼이 없어졌을때
Install Code Runner simple by press (Ctrl+shift+X) and search for "Code Runner",it works for almost all 즉, 에디터 창에서 Ctrl+shift+X를 누르고 Python extension for VS Code를 enable 로 하면 됩니다. BeeEye Dmu
blog.naver.com · 2020.08.25
-
Python - Errors and Exceptions
*Raise : the keyword to generate an error in Python *Assert keyword: This keyword tries to verify that [Solution for the last script]
blog.naver.com · 2020.08.15
-
Python - Data streams
- input("string") : allows us to prompt the user for a certain value that we can then use for our scripts the input value is the integer, use int in front of the input - I/O streams are the basic mechanism for
blog.naver.com · 2020.08.01
-
Python - Subprocesses
- Baked in functionality : functionality incorporated into Python or SW programs - To run the external command a secondary environment is created for the child process or subprocess where the command is
blog.naver.com · 2020.08.03
-
[python] unsupported operand type(s) for +: 'int' and 'str'
list의 각원소에 대해서 sum()함수를 이용하는 경우 아래 에러가 발생함 TypeError: unsupported operand type(s) for +: 'int' and 'str' 1) 해결 : string인 list의 각 원소를 map()을 이용해 int나 float로 변환후
blog.naver.com · 2019.08.14
-
스타 맵 만들기 강좌 [상급6] - eudplib 4부 : 유용한 플러그인
강좌에 사용된 환경은 Python 3.7 EUD Draft [0.8.3.3] EUD Editor 2 [0.17.8.2] unitlooper [18.11.04] customText [ 둘 다 다운 받았을거라고 믿고 바로 본론으로 들어갑니다. 1. unitlooper for ptr, epd in EUDLoopUnit(): 구조오프셋을 사용하여 모든 유닛 루프를 돌리는
blog.naver.com · 2019.01.25