Python 2

[Python] ์‹ค์ˆ˜ํ•˜๊ธฐ ์ข‹์€ ํŒŒ์ด์ฌ ๋ฌธ๋ฒ•๋“ค

์ฝ”๋”ฉํ…Œ์ŠคํŠธ๋ฅผ ์ค€๋น„ํ•˜๋‹ค, ํŒŒ์ด์ฌ์˜ ๊นŒ๋‹ค๋กœ์šด ๋ฌธ๋ฒ•๋“ค์„ ๋งŒ๋‚˜์„œ ์ •๋ฆฌํ•œ๋‹ค. 1. False == 0 ์€ True์ด๋‹ค. (True, False๋Š” 1, 0๊ณผ ๊ฑฐ์˜ ๋น„์Šทํ•˜๊ฒŒ ๊ฐ„์ฃผ๋œ๋‹ค.) True * 3 > 3 False * 3 > 0 ์œ„์˜ ๋‚ด์šฉ๋ณด๋‹ค ์ค‘์š”ํ•œ ๊ฒƒ์€ if 0: print('hi') > if 1: print('hi') > hi 0๊ณผ 1์ด ์กฐ๊ฑด์‹์•ˆ์— ๋“ค์–ด๊ฐ”์„ ๋•Œ, False, True์ฒ˜๋Ÿผ ํ–‰๋™ํ•œ๋‹ค๋Š” ๊ฒƒ. ๊ทธ๋ฆฌ๊ณ  ๊ฐ€์žฅ ํ—ท๊ฐˆ๋ฆฌ๋Š” ๊ฒƒ์€ if 0 == False: print('hi') > hi if 0 is False: print('hi') > 0 == False๋„ True์ด๋‹ค. ์ด๋ฅผ ๋น„๊ตํ•˜๋ ค๋ฉด is๋ฅผ ์จ์•ผํ•œ๋‹ค. 2. python์€ ์ž‘์€ ์ˆซ์ž๋“ค์— ๋Œ€ํ•ด์„œ ์–ด๋Š์ •๋„ ์บ์‹ฑ์„ ํ•œ๋‹ค. https://stackoverflow...

Programming 2022.03.05

[Python]poetry add ์‹œ assertion error

https://github.com/python-poetry/poetry/issues/1985 AssertionError from poetry add Naked · Issue #1985 · python-poetry/poetry I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate. If an exception occurs when executing a command, I executed it again in debug mo... github.com package name๊ณผ project name์ด ๊ฐ™์œผ๋ฉด ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ์ด๋‹ค. pyproject.toml์˜ n..

Programming 2022.01.16