프로그래밍/프로그래밍
-
Git flow - 브랜치 이름 컨벤션, git hook으로 커밋에 이슈 번호 자동 추가프로그래밍/프로그래밍 2021. 12. 18. 22:35
깃깃깃깃갓갓갓갓. 차이가 느껴지는가? 아니? 깃은 갓(신)이다. 깃을 숭배하라!! 각설하자.. 멘탈차려!! 브랜치 이름 컨벤션 main or master develop feature-{issue_number}-{feature_name} release-(version_number) Hotfix-(Issue_number) 일반적으로, 이 형식으로 진행된다고 한다. 자세한 것은, git flow naming convention 등으로 검색해보자. 필자는, {issue_number}-{issue_description, feature_name etc..}의 방식을 택하였다. git hook을 이용한 커밋에 이슈번호 자동추가 git hook은 git폴더/.git/hooks/에 존재한다. 여기서, prepare-co..
-
파이썬 and or not의 연산 결과, 파이썬의 참과 거짓프로그래밍/프로그래밍 2021. 4. 18. 00:59
6. Expressions — Python 3.9.4 documentation 6. Expressions — Python 3.9.4 documentation 6. Expressions This chapter explains the meaning of the elements of expressions in Python. Syntax Notes: In this and the following chapters, extended BNF notation will be used to describe syntax, not lexical analysis. When (one alternative of) a syntax rul docs.python.org and or로 삼항연산을 할 수 있다고.. 조건 and 참 or 거짓
-
UNICODE의 첫 128글자는 ASCII와 동일하다.프로그래밍/프로그래밍 2021. 4. 8. 01:28
UNICODE의 첫 128글자는 ASCII와 동일하다. 예) 문자:ASCII(Decimal):UNICODE(Decimal) 예1) A:65:65 예2) a:97:97 예3) 0:48:48 이유 : 그저 변환의 편리함이 이유인 것 같다. 예를 들어보자. Python에서 ASCII문자를 16진수로 바꾼 후, 특정 1byte 16진수와 XOR연산을 한 암호문이 있다고 해보자. (박00선배가 내주신 문제..ㅎㅎ 여태껏 16진수가 1byte인 줄로 알았던 것은 비밀아닌 비밀ㅎㅎ) 이를 복호화하는 프로그램을 Python으로 작성해보자. 이때, 우리는 python의 문자 -> UNICODE로 바꿔주는 ord()를 사용할 수 있을 것이다. 다른 변환과정을 통하지 않아도 ASCII와 일치하기에 문제가 되지 않는다. 굉장..