object

1. Call by Assignment(Call by Object Reference)๋ž€ ? python์€ ํ•จ์ˆ˜์— ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ „๋‹ฌํ•  ๋•Œ Call by Assignment ๋ฐฉ์‹์œผ๋กœ ์ „๋‹ฌ๋œ๋‹ค. ์ด๋Š” ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ „๋‹ฌ๋ฐ›๋Š” ๊ฐ์ฒด์— ๋”ฐ๋ผ ๊ฐ์ฒด์˜ ์ฐธ์กฐ ๋ฐฉ์‹์ด ๊ฒฐ์ •๋œ๋‹ค๋Š” ์˜๋ฏธ์ด๋‹ค. 2. ์šฐ์„  ํŒŒ์ด์ฌ์˜ ๊ฐ์ฒด(object)์— ๋Œ€ํ•˜์—ฌ ํŒŒ์ด์ฌ์€ ๋ชจ๋“  ๊ฒƒ์ด ๊ฐ์ฒด(Object)์ด๋‹ค. a = 10 ํŒŒ์ด์ฌ์—์„œ๋Š” a ์— 10์ด ํ• ๋‹น๋˜๋Š” ๊ฒƒ์ด ์•„๋‹Œ, a ๊ฐ€ 10์ด๋ผ๋Š” ์ƒ์ˆ˜ ๊ฐ์ฒด๋ฅผ ์ฐธ์กฐํ•˜๋Š” ๊ฒƒ์ด๋‹ค. 3. mutable vs immutable python์—์„œ๋Š” ๋ชจ๋“  ๊ฒƒ์ด ๊ฐ์ฒด์ด๋ฉฐ 2๊ฐ€์ง€ ์ข…๋ฅ˜๋กœ ๋‚˜๋‰œ๋‹ค. immutable : ๊ฐ’ ๋ณ€๊ฒฝ์ด ๋ถˆ๊ฐ€๋Šฅํ•œ ๊ฐ์ฒด int, float , str ,tuple , bool ..๋“ฑ mutable : ๊ฐ’ ๋ณ€๊ฒฝ์ด ๊ฐ€..
zzoming_00
'object' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก