avatar

Python 1

  • Published on
    ## ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ, Linked List ๋Š” ๊ฐ ๋…ธ๋“œ๋“ค์ด ํ•œ ์ค„๋กœ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ฐ ๋…ธ๋“œ๋Š” ๋ฐ์ดํ„ฐ์™€ ํฌ์ธํ„ฐ (๋‹ค์Œ ๋…ธ๋“œ์˜ ์ •๋ณด)๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ๋Š” ์ผ๋ฐ˜์ ์ธ ๋ฐฐ์—ด๊ณผ ๋‹ค๋ฅด๊ฒŒ ์‚ฝ์ž…๊ณผ ์‚ญ์ œ๊ฐ€ `O(1)`์— ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์žฅ์ ์ด ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ํŠน์ • n๋ฒˆ ์งธ ์ •๋ณด๋ฅผ ์ฐพ๋Š” ๋ฐ์—๋Š” `O(n)`์‹œ๊ฐ„์ด ๊ฑธ๋ฆฐ๋‹ค๋Š” ๋‹จ์ ๋„ ์žˆ๋‹ค. ![๋‹จ์ผ ์—ฐ๊ฒฐ ๋ฆฌ์ŠคํŠธ...
  • Published on
    ๋„ค์ด๋ฒ„ ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ์˜ ์„œ๋น„์Šค ์ค‘ ํ•˜๋‚˜์ธ https://www.ncloud.com/product/applicationService/sens ๋กœ SMS๋ฅผ ๋ฐœ์†กํ•˜๋Š” ์˜ˆ์ œ. ncloud์„œ๋น„์Šค๋ฅผ ๋‹ค ์จ๋ณธ๊ฑด ์•„๋‹ˆ์ง€๋งŒ, `make_signature`๋Š” ์ „ ์„œ๋น„์Šค์— ๋‹ค ๋˜‘๊ฐ™์ด ์“ธ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์€ ๊ธฐ๋ถ„์ด๋‹ค. ```python import time import req...
  • Published on
    ## Image Representation & Classification ### Images as Grids of Pixels ```python import numpy as np from skimage import io import matplotlib.image as mpimg import matplotlib.pyplot as plt import cv...
  • Published on
    ๊ตฌ๊ธ€ ์Šคํ”„๋ ˆ๋“œ ์‹œํŠธ๋ฅผ ํŒŒ์ด์ฌ์—์„œ ์กฐ์ž‘ํ•ด๋ณด์ž. ๋‚ด๊ฐ€ ํ• ์ผ์€ 1. ์Šคํ”„๋ ˆ๋“œ์‹œํŠธ๋ฅผ ์ฝ๊ณ  2. ์Šคํ”„๋ ˆ๋“œ์‹œํŠธ์— ์“ฐ๋Š” ๋‘๊ฐ€์ง€ ์ž‘์—…์ด๋‹ค. ```python import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import Installe...
  • Published on
    e ํŒŒ์ด์ฌ๊ณผ ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ (beatifulSoup)๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋„ค์ด๋ฒ„ ์˜ํ™” ๋Œ“๊ธ€ ํฌ๋กค๋ง ํ•ด๋ณด๊ธฐ ## 1. ํฌ๋กค๋งํ•˜๋ ค๋Š” ์›นํŽ˜์ด์ง€์˜ ๊ตฌ์กฐ๋ฅผ ์‚ดํŽด๋ณด๊ธฐ ์ธํฌ๋ ˆ๋”๋ธ” ํ‰์  ๋Œ“๊ธ€ ํŽ˜์ด์ง€๋ฅผ ๋จผ์ € ์‚ดํŽด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. [์—ฌ๊ธฐ](https://movie.naver.com/movie/bi/mi/point.nhn?code=136990&onlyActualPointYn=Y#po...