๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ51

[List] ArrayList, Vector, LinkedList 1. List Interface : Link์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ƒ์†๋ฐ›๋Š” ์ž๋ฃŒ๊ตฌ์กฐ - ArrayList, Vector, LinkedList ๋“ฑ ArrayList ์ด ํด๋ž˜์Šค๋Š” Synchronized(X) : ์†๋„๊ฐ€ ์กฐ๊ธˆ ๋น ๋ฆ„, ๋™๊ธฐํ™”์ฒ˜๋ฆฌ ํ•„์š”์—†๋Š” ๊ฒฝ์šฐ ์ฃผ๋กœ ์‚ฌ์šฉ Vector ์ด ํด๋ž˜์Šค๋Š” Synchronized(O) : ์†๋„๊ฐ€ ์กฐ๊ธˆ ๋Š๋ฆผ : ์š”์†Œ์˜ ์ˆœ์„œ ์ €์žฅ๋˜๋ฉฐ, ์ค‘๋ณต ์ €์žฅ ๊ฐ€๋Šฅ : ๊ฐ’์„ ์—ฌ๋Ÿฌ๊ฐœ ์ €์žฅํ›„ ์ผ๊ด„์ฒ˜๋ฆฌ๊ฐ€ ๋ชฉ์  : ์ผ๊ด„์ฒ˜๋ฆฌ > ๋ฐ˜๋ณต์ง€์‹œ์ž Iterator ๋˜๋Š” for (์ž๋ฃŒํ˜• ๋ณ€์ˆ˜๋ช…:collection) ํ™œ์šฉ ArrayList.add(e) ์—˜๋ฆฌ๋จผํŠธ ๊ฐ’ ์ถ”๊ฐ€ / index๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์ง€์ •์œ„์น˜์— ์ €์žฅ ๊ฐ€๋Šฅ ArrayList.get(index) index์— ์œ„์น˜ํ•œ ์—˜๋ฆฌ๋จผํŠธ ๋ฐ˜ํ™˜ ArrayList.set(Index, .. 2020. 8. 22.
[Map] HashMap, HashTable, TreeMap 1. Map : Map์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ตฌํ˜„ํ•œ ํด๋ž˜์Šค๋“ค์€ ํ‚ค์™€ ๊ฐ’์„ ํ•˜๋‚˜์˜ ์Œ์œผ๋กœ ์ €์žฅํ•˜๋Š” ๋ฐฉ์‹์„ ์‚ฌ์šฉ : ์š”์†Œ์˜ ์ˆœ์„œ๋Š” ์ €์žฅํ•˜์ง€์•Š์œผ๋ฉฐ, ํ‚ค๊ฐ’์˜ ์ค‘๋ณต์€ ํ—ˆ์šฉํ•˜์ง€์•Š์œผ๋‚˜ ๊ฐ’์˜ ์ค‘๋ณต์€ ํ—ˆ์šฉ : HashMap HashTable TreeMap โ€‹ โ€‹ 2. HashMap : ํ•ด์‹œ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉ >> ๊ฒ€์ƒ‰์†๋„ ์šฐ์ˆ˜ : ์ค‘๋ณต๋œ ํ‚ค๊ฐ’ ํ—ˆ์šฉX (๋‹จ, ๊ฐ’์˜ ์ค‘๋ณต์€ ํ—ˆ์šฉ) Method Function hashMap.put(K,V) ์š”์†Œ ๊ฐ’ ์ถ”๊ฐ€ hashMap.keySet() ํ‚ค๋“ค ๋ฐ˜ํ™˜ > set(์ง‘ํ•ฉ)ํ˜•ํƒœ๋กœ hashMap.entrySet() ์•คํŠธ๋ฆฌ๋“ค ๋ฐ˜ํ™˜ > set(์ง‘ํ•ฉ)ํ˜•ํƒœ๋กœ hashMap.get(K) ํ‚ค์— ํ•ด๋‹นํ•˜๋Š” ๊ฐ’ ๋ฐ˜ํ™˜ hashMap.replace(K,V) ํ‚ค์— ํ•ด๋‹นํ•˜๋Š” ๊ฐ’ ๋ณ€๊ฒฝ hashMap.remove(K) ํ‚ค์— ํ•ด๋‹นํ•˜.. 2020. 8. 22.
[EXTENDING] put Web Scrapper in Server show the result immediately instead of CSV file. -> dont need to download anything But can download by button [Flask] - micro-framework that allows you to make website with Python 2020. 8. 6.
[GET READY FOR DJANGO] OOP [ Django? ] - web Framework to make Back End API, Front End using only Python [Argument, Keyword argument?] - *args : infinite positional arguements (>>take tuple) - **kwargs : infinite keyword arguements ( >>take dictionary) [ Method ] - functions inside of a class - โ˜… method ! ๋ชจ๋“  ๋ฉ”์†Œ๋“œ์˜ ์ฒซ๋ฒˆ์งธ argument๋Š” ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ์ž๊ธฐ์ž์‹ (instance)์ด์•ผ ํŒŒ์ด์ฌ์€ ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ• ๋•Œ ๊ทธ ๋ฉ”์†Œ๋“œ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ฒซ๋ฒˆ์งธ ์•„๊ทœ๋จผํŠธ๋กœ ์‚ฌ์šฉํ•ด - ๋‚ด์žฅํ•จ์ˆ˜ dir(class) : ํด๋ž˜์Šค์— ์กด์žฌ.. 2020. 8. 5.