본문 바로가기

Programming5

[vscode] cSpell extension : Code Spell Checker vscode에서 sepll check를 수행하는 extension. (2023.08.04 기준 2.20.5가 최신버전임) English만 지원 (US, GB)하지만, Add-on dictionary를 통해 여러 언어를 지원함. (아직 한글은 없음) vscode의 marketplace의 공식 url : https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker Code Spell Checker - Visual Studio Marketplace Extension for Visual Studio Code - Spelling checker for source code marketplace.visualstudio.. 2023. 8. 4.
[WebApp] CGI vs. WSGI CGI (Common Gateway Interface) 1993년 정적인 페이지를 처리하던 web server에 사용자와의 interaction을 통한 동적인 페이지 생성 기능이 가능한 외부 프로그램(오늘날 web application으로 불림)을 추가하기 위해 제안됨. 다시 말하면, CGI는 Web server와 Web application (이전엔 CGI program, CGI application이라 불림, 외부 프로그램 또는 web application) 간의 통신 방식이다. Programming language나 platform 등에 independent 이라는 장점을 가지지만 Web server가 application(앞서 말한 외부 프로그램)을 호출할 때마다 새로운 process를 생성하기 .. 2023. 7. 31.
[Python] while statement, break and continue Python의 경우, loop structure로 while statement와 for statement를 제공한다. Contol Flow와 Control Structure에 대한 개념은 다음 URL을 참고 : http://ds31x.blogspot.com/2023/07/basic-control-structures-and-control.html 참고로 do-while statement 는 while statement 만으로도 구현가능하기 때문에 Python에선 지원하지 않음. for statement가 iterator object와 함께 사용되는 것과 달리, while statement는 if statement와 매우 유사한 구조로 repetition을 가능하게 함. 일반적인 구조. while condi.. 2023. 7. 28.
[Python] if, elif, else statements 프로그램의 flow control를 담당함. (loop문과 함께) Flow control을 위한 Control Structures에 대한 내용은 다음 URL을 참고. http://ds31x.blogspot.com/2023/07/basic-control-structures-and-control.html C언어의 if, else if, else 와 매우 유사함. 설명 다음은 이들 사용을 위한 간략한 예이다. if condition: # if statement if_block # if statement's code block elif condition: # elif statement elif_block # elif statement's code block else: # else statement else_bl.. 2023. 7. 28.
[Python] Boolean Operators, Relational Operators, and Membership Operator Boolean Operators 기본 boolean operator는 다음 3가지로 구성됨. and : and 연산자. (binary op.) : C언어 등에선 &&에 해당. or : or 연산자. (binary op.) : || 에 해당. not : not 연산자. (unary operator로 operand가 하나임.) : !에 해당. 참고로 boolean operator로 묶여 있는 combining comparisons의 경우, short-circuit evaluation이 수행됨. or의 경우 왼쪽에서 오른쪽으로 evaluation이 이루어지는 도중 하나라도 True가 나오면 뒤에 대해 evaluation을 하지않고 True를 반환. and의 경우는 하나라도 Flase가 나오면 이후 evalua.. 2023. 7. 28.
반응형