profile
๐Ÿš€ ๊ธฐ๋ก๋ณด๋‹จ ๊ธธ๋ก์„ โญ
ํƒœ๊ทธ ๋ชฉ๋ก
์ „์ฒด๋ณด๊ธฐ (459)ํ• ์ผ(141)Java(34)Spring(22)python(21)gil.log(15)mysql(13)๊ฐœ๋…(10)์ž๋ฐ” ์„ฑ๋Šฅ ํŠœ๋‹ ์ด์•ผ๊ธฐ(9)์—๋Ÿฌ(8)Springboot(8)linux(8)JPA(8)์ž๋ฃŒ๊ตฌ์กฐ(7)eclipse(7)db(6)MacOS(6)sql(6)vscode(6)Swagger(6)jquery(6)์•Œ๊ณ ๋ฆฌ์ฆ˜(6)migration(6)Modern Java In Action(5)php(5)lambda(4)List(4)ide(4)JavaScript(4)@RequestParam(4)error(4)exception(4)stream(3)cors(3)set(3)API(3)class(3)DDaJa(3)EL(2)stack(2)collections(2)RequestHeader(2)queue(2)Interceptor(2)RequestBody(2)mac(2)์ž๋ฃŒํ˜•(2)abstract class(2)di(2)Cheat Sheet(2)coding test(2)ํ•ด๊ฒฐ(2)Map(2)vue.js(2)macbook(2)@PathVariable(2)404(2)param(2)regular expression(2)exception handling(2)String(2)ํƒ์ƒ‰(2)http(2)dictionary(2)REST API(2)interface(2)Spring boot(2)๋””์ž์ธ ํŒจํ„ด(2)jsp(2)REST(2)ํŠœ๋‹(2)preflight(2)COLUMN(2)jQuery Migrate(2)Java 8(2)restful api(2)MVC(2)aws(2)Builder(2)protocol(2)maven(2)Hibernate(2)MyBatis(2)parameter(2)์ •๊ทœ ํ‘œํ˜„์‹(2)@ExceptionHandler(2)Index(2)git(2)transaction(2)Text Mining(2)LomBok(2)Design Pattern(2)case(2)๊ณ„ํš(1)๊ธฐ์ˆ ๋ธ”๋กœ๊ทธ(1)terminal(1)functional programming(1)HashTable(1)์˜ˆ์™ธ์ฒ˜๋ฆฌ(1)StringBuilder(1)modjk(1)DispatcherServlet(1)data type(1)modelattribute(1)iteration(1)rpm(1)HashMap(1)์ƒํƒœ์ฝ”๋“œ(1)stomp(1)TreeMap(1)csrf(1)batch(1)HashSet(1)๋ณ€์ˆ˜๋ช…(1)PriorityQueue(1)CORS policy(1)๋งˆ์ด๊ทธ๋ ˆ์ด์…˜(1)๋ฒ„๋ธ” ์ •๋ ฌ(1)์„ ํƒ ์ •๋ ฌ(1)INSERT(1)Working set(1)๋น„๊ต์—ฐ์‚ฐ์ž(1)Mac Os(1)VO(1)optional(1)const(1)let(1)var(1)excel(1)tomcat(1)์ •๋ ฌ(1)์‹œ๊ฐ„๋ณต์žก๋„(1)ArrayList(1)annotation(1)anaconda(1)Table(1)hibernate.hbm2ddl.auto(1)sessionStorage(1)formData(1)์ž๋ฃŒ ๊ตฌ์กฐ(1)localstorage(1)resolver(1)file(1)์‹ ์ž…๊ฐœ๋ฐœ์ž(1)ํŒจํ„ด(1)Builder Pattern(1)AutoConfiguration(1)methods(1)bean(1)ํ•ด์ƒ๋„(1)header(1)yaml(1)์ œ์–ด๋ฌธ(1)์›์‹œํƒ€์ž…(1)์ฐธ์กฐํƒ€์ž…(1)aop(1)coding convention(1)junit(1)svn(1)environment(1)jar(1)DTO(1)PORT(1)require(1)Big O(1)StringBuffer(1)๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋ž˜๋ฐ(1)options(1)RuntimeException(1)BigInteger(1)ObjectMapper(1)container(1)replace(1)๋‚™์„œ์žฅ(1)View(1)testcode(1)@Valid(1)dependency(1)include(1)wrapper(1)group by(1)durability(1)Isolation(1)controlleradvice(1)Junit 5(1)distinct(1)annotations(1)phantom read(1)dirty read(1)isolation level(1)ALTER TABLE(1)๋“€์–ผ ๋ชจ๋‹ˆํ„ฐ(1)commands(1)Camera(1)access token(1)first class(1)Primenumber(1)TreeSet(1)transient(1)ํƒ์š• ์•Œ๊ณ ๋ฆฌ์ฆ˜(1)๋ช…๋ นํ˜• ํ”„๋กœ๊ทธ๋ž˜๋ฐ(1)ํ™˜๊ฒฝ(1)์‚ฐ์ถœ๋ฌผ(1)pageContext(1)COALESCE(1)consistency(1)ANSI SQL(1)EXPLAIN PLAN(1)Data Dictionary(1)Math.class(1)LinkedHashSet(1)LinkedHashMap(1)PrimitiveType(1)ReferenceType(1)์„œ์‹(1)๊ด€์  ์ง€ํ–ฅ(1)์šฐ์„  ์ˆœ์œ„ ํ(1)Tibero(1)Command Object(1)HttpServletRequest(1)๋™์  ์ฟผ๋ฆฌ(1).find()(1)๋‚ด์žฅ ํ•จ์ˆ˜(1)DATE_FORMAT(1)NonClustered Index(1)Clustered Index(1)SQL Partition(1)์„ ํƒ๋ฌธ(1)webcam(1)TestCase(1)spring-boot-starter(1)DB Export(1)DB Import(1)ํ‘œ์ค€ Library(1)ddl auto(1)throwable(1)๊ต์ฐจ ์ถœ์ฒ˜ ๋ฆฌ์†Œ์Šค ๊ณต์œ (1)defaultdict(1)MyISAM(1)InnoDB(1)HandlerInterCeptor(1)์ผ๊ธ‰ ์‹œ๋ฏผ(1)moshi(1)MessageConverter(1)@lob(1)api server(1)enumerated(1)currentTimeMillis(1)@MappedSuperclass(1)๋ฌธ์žํ˜•(1)string class(1)CentOS 6.9(1)mirrorlist(1)ius(1)CentOS6.9(1)Logrotate(1)ํด๋ฆญ ์—ฐ๊ฒฐ(1)์ ์ธต์  ์ƒ์„ฑ์ž ํŒจํ„ด(1)JavaBeans Pattern(1)MVC ๋ชจ๋ธ(1)๋‹จ์ถ•ํ‚ค ์ •๋ฆฌ(1)Transfer Object Pattern(1)Service Locator(1)ํ”„๋กœํŒŒ์ผ๋ง ํˆด(1)Profiling Tool(1)์„ฑ๋Šฅ ์ธก์ •(1)Profilling Tool(1)์ž๋ฐ” ์„ฑ๋Šฅ ๊ฐœ์„  ์ด์•ผ๊ธฐ(1)์‘๋‹ต ์‹œ๊ฐ„ ํ”„๋กœํŒŒ์ผ๋ง(1)๋ฉ”๋ชจ๋ฆฌ ํ”„๋กœํŒŒ์ผ๋ง(1)Memory Profiling(1)ResponseTime Profiling(1)System Class(1)System Class Property Methods(1)VLOOKUP(1)nanoTime(1)emit(1)JMH(1)TransferObject(1)Implicit Objects(1)applicationScope(1)pageScope(1)initParam(1)sessionScope(1)requestScope(1)paramValues(1)MultiValueMap(1)@SessionAttributes(1)headerValues(1)Atomicity(1)Nonrepeatable Read(1)UncheckedException(1)CheckedException(1)์ด๊ธ‰ ์‹œ๋ฏผ(1)์ „์ฒด ๊ฒ€์ƒ‰(1)ModernJavaInAction(1)๋™์ž‘ ํŒŒ๋ผ๋ฏธํ„ฐํ™”(1)Behavior Parameterization(1)swagger2(1)-Dspring.profiles.active(1)Spring Fox(1)Java Builder(1)OAS_30(1)@ApiResponse(1)SWAGER_2(1)Kill(1)์ž๋ฐ” ORM ํ‘œ์ค€ JPA ํ”„๋กœ๊ทธ๋ž˜๋ฐ(1)web-app-filter-name-uniqueness(1)lsof(1)jjwt(1)์™ธ๋ถ€ ๋ชจ๋‹ˆํ„ฐ(1)M1 MacBook(1)alter table column(1)IDENTITY(1)@Temporal(1)์—ฐ๊ด€ ๊ด€๊ณ„ ์ฃผ์ธ(1)์–‘๋ฐฉํ–ฅ ๋งคํ•‘(1)๋‹ค๋Œ€์ผ ๊ด€๊ณ„(1)๊ณตํ†ต Entity(1)Column Field Mapping(1)์—ฐ๊ด€๊ด€๊ณ„ ํŽธ์˜ ๋ฉ”์†Œ๋“œ(1)RequestHeaderMapMethodArgumentResolver(1)HandlerMethodArgumentResolver(1)HandlerInterceptorAdapter(1)NoHandlerFoundException(1)Class.isAssignableFrom(1)MethodArgumentResolver(1)Handler Parameter(1)PathVariableMethodArgumentResolver(1)RequestParamMethodArgumentResolver(1)WebMvcConfigurer(1)AJP(1)Please use a personal access token instead(1)HandlerExceptionResolver(1)customize property(1)application.properties(1)@ConfigurationProperties(1)this.$ref(1)this.$parent(1)๋ฏธ๋ฆฌ์บ”๋ฒ„์Šค(1)Rfc3339DateJsonAdapter(1)์˜ˆ์™ธ ์ „ํ™˜(1)์˜ˆ์™ธ ํšŒํ”ผ(1)์˜ˆ์™ธ ๋ณต๊ตฌ(1)resolveException(1)OAS(1)regexp(1)1๋…„(1)algorithm(1)plan(1)Collection(1)access(1)slicing(1)ifnull(1)ps(1)instanceof(1)comparable(1)Rollback(1)formatting(1)ACID(1)comparator(1)@property(1)SIDEPROJECT(1)์ ‘๊ทผ ์ œํ•œ์ž(1)sequence(1)์†Œ์ˆ˜ ์ฐพ๊ธฐ(1)R(1)velog(1)tcp(1)Markdown(1)๋งˆํฌ๋‹ค์šด(1)์ž๋ฐ”(1)์กฐํ•ฉ(1)cookie(1)math(1)array(1)github(1)JWT(1)web(1)๋ฉด์ ‘(1)Module(1)OOP(1)Python3(1)iBatis(1)pattern(1)async(1)๋น„๋™๊ธฐ(1)Constraint(1)entity(1)runtime(1)framework(1)library(1)์Šคํ„ฐ๋””(1)Side Project(1)ssh(1)programmers(1)DP(1)์†Œ์ˆ˜(1)url(1)Database(1)BFS(1)spring security(1)IntelliJ(1)ํ† ์ดํ”„๋กœ์ ํŠธ(1)๋‹จ์ถ•ํ‚ค(1)cmd(1)hint(1)pycharm(1)ํ”„๋กœํŒŒ์ผ๋ง(1)๊ฒ€์ฆ(1)Generic(1)DFS(1)์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜(1)validator(1)jdk(1)linked list(1)component(1)POST(1)domain(1)Props(1)ํ•จ์ˆ˜ํ˜• ํ”„๋กœ๊ทธ๋ž˜๋ฐ(1)IoC(1)status code(1)IO(1)profile(1)json(1)counter(1)select(1)SYSTEM(1)๋ฌธ๋ฒ•(1)tuple(1)function(1)package(1)command(1)๋ฐ˜๋ณต๋ฌธ(1)์ˆœ์—ด(1)reference(1)recursion(1)servlet(1)

[Python] Collections Module(Counter, defaultdict)

Counter Counter Module์€ ์ข…๋ฅ˜๋ณ„๋กœ ์นด์šดํŒ…์ด ํ•„์š”ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” Module์ด๋‹ค. defaultdict Module์€ ์ผ๋Œ€๋‹ค(One-Many) ๋งคํ•‘์ฒ˜๋Ÿผ ํ•˜๋‚˜์˜ ํ‚ค์— ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๊ฐ’์„ ๋งคํ•‘ํ•˜๊ณ  ์‹ถ์„ ๋•Œ ์‚ฌ์šฉํ•˜๋Š” Module์ด๋‹ค.

2020๋…„ 12์›” 26์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Formatting(ํฌ๋งคํŒ…)

Formatting ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ์ดํ„ฐ๋ฅผ ์ž‘์—…ํ•  ๋•Œ ๊ตฌ์กฐํ™”๋œ ์ถœ๋ ฅ(ํ…Œ์ด๋ธ” ๋“ฑ)์ด ํ•„์š”ํ•  ๋•Œ๊ฐ€ ์žˆ๋‹ค. Formatting์€ ๋ฐ์ดํ„ฐ๋“ค์„ ์ •ํ˜•ํ™” ์‹œํ‚ฌ๋•Œ ์‚ฌ์šฉ๋œ๋‹ค.

2020๋…„ 12์›” 25์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Container(List, Dictionary, Set)

Container Python์—์„œ Container๋ž€ ์ž๋ฃŒํ˜•(Data type)์˜ ์ €์žฅ ๋ชจ๋ธ๋กœ ์ข…๋ฅ˜์— ๋ฌด๊ด€ํ•˜๊ฒŒ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ์ˆ˜ ์žˆ์Œ์„ ์˜๋ฏธํ•œ๋‹ค. String, Tuple, List, Dictionary, Set ๋“ฑ์€ ์ข…๋ฅ˜์— ๋ฌด๊ด€(Container)ํ•œ ํ˜•์‹์ด๋ฉฐ, ์ •

2020๋…„ 12์›” 24์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] ์ž๋ฃŒํ˜•๊ณผ ์ž๋ฃŒ ๊ตฌ์กฐ(Tuple, List, Dictionary)

Tuple Tuple์€ ํ•จ๊ป˜ ๋ฌถ์ธ ๊ฐ’์˜ Collection์ด๋‹ค. s = ('GOOG', 100, 490.1) ()๋ฅผ ์ƒ๋žต ํ•˜๊ธฐ๋„ ํ•œ๋‹ค. s = 'GOOG', 100, 490.1 Tuple์€ ์ฃผ๋กœ ๋‹จ์ˆœํ•œ ๋ ˆ์ฝ”๋“œ ๋˜๋Š” ์ž๋ฃŒ ๊ตฌ์กฐ๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•œ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ์—ฌ

2020๋…„ 12์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] List ๊ด€๋ จ method ์ •๋ฆฌ

List ์ž๋ฃŒํ˜•์€ ์ €์žฅ๋˜๋Š” ๋ฐ์ดํ„ฐ๊ฐ€ ์„œ๋กœ ๋‹ค๋ฅธ ํ˜•ํƒœ์˜ ๋ฐ์ดํ„ฐ์—ฌ๋„ ์ €์žฅ๋˜๋ฉฐ, ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์  ๋•Œ๋ฌธ์— ๋ฐ์ดํ„ฐ ๋ถ„์„์—์„œ ๋งŽ์ด ์‚ฌ์šฉ๋œ๋‹ค. ํŠœํ”Œ์€ ์ž๋ฃŒ ๊ฐฑ์‹ ์ด ์•ˆ๋œ๋‹ค. List Method del : ์‚ญ์ œ list_1 = ['abc', 123, 3.14, ['ed

2020๋…„ 12์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[CodingTest] ๋ฐฑ์ค€ 1929 ์†Œ์ˆ˜ ๊ตฌํ•˜๊ธฐ Python, ์—๋ผํ† ์Šคํ…Œ์Šค์˜ ์ฒด

์—๋ผํ† ์Šคํ…Œ๋„ค์Šค์˜ ์ฒด๋Š” ์†Œ์ˆ˜๋ฅผ ์ฐพ๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. ๊ณ ๋Œ€ ๊ทธ๋ฆฌ์Šค ์ˆ˜ํ•™์ž ์—๋ผํ† ์Šคํ…Œ๋„ค์Šค๊ฐ€ ๋ฐœ๊ฒฌํ•˜์˜€๋‹ค. ์œ„ ๊ทธ๋ฆผ์ฒ˜๋Ÿผ ์—๋ผํ† ์Šคํ…Œ๋„ค์Šค์˜ ์ฒด๋ฅผ ํ†ตํ•ด ์†Œ์ˆ˜๋ฅผ ๊ตฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. 2๋ถ€ํ„ฐ ์†Œ์ˆ˜๋ฅผ ๊ตฌํ•˜๊ณ ์ž ํ•˜๋Š” ๊ตฌ๊ฐ„์˜ ๋ชจ๋“  ์ˆ˜๋ฅผ ๋‚˜์—ดํ•œ๋‹ค. ๊ทธ๋ฆผ์—์„œ ํšŒ์ƒ‰ ์‚ฌ๊ฐํ˜•์œผ๋กœ ๋‘๋ฅธ ์ˆ˜๋“ค

2020๋…„ 12์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Stack, Queue ๊ธฐ๋ณธ, module ์‚ฌ์šฉ ์ •๋ฆฌ

Python์—์„œ Queue๋Š” List๋ฅผ ์ด์šฉํ•ด ๊ตฌํ˜„ํ•  ๊ฒฝ์šฐ dequeue๋ฅผ ์‹คํ–‰ ํ•  ๋•Œ ์‹œ๊ฐ„ ๋ณต์žก๋„๊ฐ€ O(1)์ด ์•„๋‹Œ O(N)์ด ๊ฑธ๋ฆฌ๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ์•ž์—์„œ ์ถ”์ถœํ•œ ๋ฐ์ดํ„ฐ์˜ ์ฃผ์†Œ์— ์ด์ „ ๋ฐ์ดํ„ฐ๋“ค์„ ์ด์ „ํ•˜๋Š” ์ž‘์—…์ด ๋™๋ฐ˜๋˜์–ด ์‹œ๊ฐ„ ๋ณต์žก๋„๊ฐ€ ์ฆ๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด๋‹ค

2020๋…„ 12์›” 20์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] slicing ๊ธฐ๋ณธ ์˜ˆ์ œ

slicing slicing์€ ์—ฐ์†์ ์ธ ๊ฐ์ฒด(๋ฆฌ์ŠคํŠธ, ํŠœํ”Œ, ๋ฌธ์ž์—ด)์˜ ๋ฒ”์œ„๋ฅผ ์ง€์ •ํ•ด ์„ ํƒํ•œ ํ›„ ๊ฐ์ฒด๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•๊ณผ ํ‘œ๊ธฐ๋ฒ•์„ ์˜๋ฏธํ•œ๋‹ค. slicing์„ ํ•˜๋ฉด ์ƒˆ๋กœ์šด ๊ฐ์ฒด๊ฐ€ ์ƒ์„ฑ ๋œ๋‹ค. ์—ฐ์†์ ์ธ ๊ฐ์ฒด์˜ ์ผ๋ถ€๋ถ„์„ ๋ณต์‚ฌํ•ด ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ์‹ ๊ธฐ๋ณธ ํ˜•ํƒœ ์—ฐ์†์ ์ธ ๊ฐ์ฒด๋“ค์˜ ์ž

2020๋…„ 12์›” 19์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] math module ์ •๋ฆฌ

math math module์€ ๋‹จ์ˆœ python ์—ฐ์‚ฐ์„ ๋„˜์–ด ์กฐ๊ธˆ ๋” ๋ณต์žกํ•œ ์‚ฐ์ˆ  ์—ฐ์‚ฐ์ด ํ•„์š”ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” module์ด๋‹ค. import math๋ฅผ ํ†ตํ•ด์„œ math module ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. constant math.pi ์›์ฃผ์œจ ํŒŒ์ด๋กœ, 3.1415926

2020๋…„ 12์›” 18์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] ํ‘œ์ค€, Data Science Library ์†Œ๊ฐœ

ํ‘œ์ค€ Library sys sys ๋ชจ๋“ˆ์€ ํŒŒ์ด์ฌ ์ธํ„ฐํ”„๋ฆฌํ„ฐ๊ฐ€ ์ œ๊ณตํ•˜๋Š” ๋ณ€์ˆ˜์™€ ํ•จ์ˆ˜๋ฅผ ์ง์ ‘ ์ œ์–ดํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ๋ชจ๋“ˆ์ด๋‹ค. sys.argv sys.argv๋Š” ๋ช…๋ น ํ–‰์—์„œ ์ธ์ˆ˜๋ฅผ ์ „๋‹ฌํ•ด์ฃผ๋Š” ํ•จ์ˆ˜์ด๋‹ค. # argv_test.py import sys print(sys.a

2020๋…„ 12์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Coding Convention

Coding Convention ? Coding Convention์€ ํ”„๋กœ๊ทธ๋žจ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•  ๋•Œ ์‚ฌ์šฉ๋˜๋Š” ์ผ์ข…์˜ ๊ธฐ์ค€์ด๋‹ค. ๋ช…๋ช…๊ทœ์น™ Example ClassName ExceptionName module_name package_name

2020๋…„ 12์›” 16์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] ๋‚ด์žฅ ํ•จ์ˆ˜

๋‚ด์žฅ ํ•จ์ˆ˜ Python์—์„œ ๋‚ด์žฅ ํ•จ์ˆ˜๋Š” ์™ธ๋ถ€ Module๊ณผ ๋‹ฌ๋ฆฌ import์—†์ด ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. abs() abs(x)๋Š” ์–ด๋–ค ์ˆซ์ž๋ฅผ ์ž…๋ ฅ๋ฐ›์•˜์„ ๋•Œ, ๊ทธ ์ˆซ์ž์˜ ์ ˆ๋Œ“๊ฐ’์„ ๋Œ๋ ค์ฃผ๋Š” ํ•จ์ˆ˜์ด๋‹ค. all() all(x)๋Š” ๋ฐ˜๋ณต ๊ฐ€๋Šฅํ•œ(iterable) ์ž๋ฃŒํ˜• x๋ฅผ

2020๋…„ 12์›” 15์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] ์˜ˆ์™ธ์ฒ˜๋ฆฌ ์ •๋ฆฌ

python์—์„œ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•œ try, except๋ฌธ์˜ ๊ธฐ๋ณธ ๊ตฌ์กฐ์ด๋‹ค. try ๋ธ”๋ก ์ˆ˜ํ–‰ ์ค‘ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด except ๋ธ”๋ก์ด ์ˆ˜ํ–‰๋œ๋‹ค. try ๋ธ”๋ก์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด except ๋ธ”๋ก์€ ์ˆ˜ํ–‰๋˜์ง€ ์•Š๋Š”๋‹ค. try: ... except [๋ฐœ์ƒ

2020๋…„ 12์›” 15์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Module, Package ์ •๋ฆฌ

Module์ด๋ž€ ํ•จ์ˆ˜, ๋ณ€์ˆ˜, Class๋ฅผ ๋ชจ์•„ ๋†“์€ ํŒŒ์ผ์ด๋‹ค. Module์€ ๋‹ค๋ฅธ Python ํ”„๋กœ๊ทธ๋žจ์—์„œ ๋ถˆ๋Ÿฌ์™€ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๋งŒ๋“  Python ํŒŒ์ผ ์ด๋ผ ํ•  ์ˆ˜ ์žˆ๋‹ค. Module์„ ๋ถˆ๋Ÿฌ ์˜ฌ๋•Œ import ๋ถˆ๋Ÿฌ์˜ฌ๋ชจ๋“ˆ.pyํŒŒ์ผ๋ช…์œผ๋กœ Module ์ „์ฒด๋ฅผ ๋ถˆ๋Ÿฌ

2020๋…„ 12์›” 14์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Class

Python method์˜ ์ฒซ ๋ฒˆ์งธ ๋งค๊ฐœ๋ณ€์ˆ˜ ์ด๋ฆ„์€ ๊ด€๋ก€์ ์œผ๋กœ self๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ๊ฐ์ฒด๋ฅผ ํ˜ธ์ถœํ•  ๋•Œ ํ˜ธ์ถœํ•œ ๊ฐ์ฒด ์ž์‹ ์ด ์ „๋‹ฌ๋˜๊ธฐ ๋•Œ๋ฌธ์— self๋ฅผ ์‚ฌ์šฉํ•œ ๊ฒƒ self๋ง๊ณ  ๋‹ค๋ฅธ ์ด๋ฆ„์„ ์‚ฌ์šฉํ•ด

2020๋…„ 12์›” 13์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Python] ํ•จ์ˆ˜ ๊ธฐ๋ณธ ์ •๋ฆฌ(๋žŒ๋‹ค, ์ž…์ถœ๋ ฅ, ํŒŒ์ผ)

lambda๋Š” ํ•จ์ˆ˜๋ฅผ ์ƒ์„ฑํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์˜ˆ์•ฝ์–ด๋กœ def์™€ ๋™์ผํ•œ ์—ญํ• ์„ ํ•œ๋‹ค. ๋ณดํ†ต ํ•จ์ˆ˜๋ฅผ ํ•œ์ค„๋กœ ๊ฐ„๊ฒฐํ•˜๊ฒŒ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉ def๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•  ์ •๋„๋กœ ๋ณต์žกํ•˜์ง€ ์•Š๊ฑฐ๋‚˜ def๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋Š” ๊ณณ์— ์ฃผ๋กœ ์“ฐ์ธ๋‹ค.

2020๋…„ 12์›” 12์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

gil.getPyCheatSheet();

% ํ™œ์šฉ "๋ฌธ์ž์—ด%d" %(dddd)input ๋Œ€์‹  sys.stdin.readline์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋‹จ, ์ด๋•Œ๋Š” ๋งจ ๋์˜ ๊ฐœํ–‰๋ฌธ์ž๊นŒ์ง€ ๊ฐ™์ด ์ž…๋ ฅ๋ฐ›๊ธฐ ๋•Œ๋ฌธ์— ๋ฌธ์ž์—ด์„ ์ €์žฅํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ .rstrip()์„ ์ถ”๊ฐ€๋กœ ํ•ด ์ฃผ๋Š” ๊ฒƒ์ด ์ข‹๋‹ค.i in range(i, 0, -

2020๋…„ 12์›” 12์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] ์ž๋ฃŒํ˜•, ์ œ์–ด๋ฌธ, ๊ธฐ๋ณธ ํ•จ์ˆ˜ ์ •๋ฆฌ

์ฃผ์„ Python์—์„œ ์ฃผ์„์€ ๋“ค์—ฌ์“ฐ๊ธฐ๋ฅผ ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค. Python์€ ๋“ค์—ฌ์“ฐ๊ธฐ๋กœ if๋ฌธ, ํ•จ์ˆ˜ ๋ ์˜ ๋ฒ”์œ„๋ฅผ ์ธ์‹ํ•˜๋Š”๋ฐ ์ฃผ์„๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋“ค์—ฌ์“ฐ๊ธฐ๋ฅผ ํ†ตํ•ด์„œ ์–ด๋Š ํ•จ์ˆ˜์˜ ์ฃผ์„์ธ์ง€๋ฅผ ๊ตฌ๋ถ„ํ•˜๊ฒŒ ๋œ๋‹ค.

2020๋…„ 12์›” 11์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Python] Python

Python์€ 1991๋…„ ํ”„๋กœ๊ทธ๋ž˜๋จธ์ธ ๊ท€๋„ ๋ฐ˜ ๋กœ์„ฌ(Guido van Rossum)์ด ๋ฐœํ‘œํ•œ ๊ณ ๊ธ‰ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์ด๋‹ค. Python์€ ์‚ฌ๋žŒ์ด ์ƒ๊ฐํ•˜๋Š” ๋ฐฉ์‹์„ ๊ทธ๋Œ€๋กœ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด ์ฃผ๋Š” ์–ธ์–ด์ด๋‹ค. ๋ฌธ๋ฒ•์ด ์‰ฌ์›Œ ๋น ๋ฅด๊ฒŒ ํ•™์Šต ํ•  ์ˆ˜ ์žˆ๋‹ค. Python๋งŒ์œผ๋กœ๋„ ํ”„๋กœ

2020๋…„ 12์›” 11์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Python] Anaconda + Pycharm ์—ฐ๋™

Anaconda๋Š” ์ˆ˜ํ•™, ๊ณผํ•™ ๋ถ„์•ผ์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์—ฌ๋Ÿฌ ํŒจํ‚ค์ง€๋ฅผ ๋ฌถ์–ด ๋†“์€ Python ๋ฐฐํฌํŒ์ด๋‹ค. Python ๊ธฐ๋ฐ˜์˜ ๋ฐ์ดํ„ฐ ๋ถ„์„์— ํ•„์š”ํ•œ(๊ฐ์ข… ์ˆ˜ํ•™/๊ณผํ•™ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค) ์˜คํ”ˆ์†Œ์Šค๋ฅผ ๋ชจ์•„๋†“์€ ๊ฐœ๋ฐœ ํ”Œ๋žซํผ์œผ๋กœ, ๊ฐ€์ƒ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜์—ฌ ๊ฐ ํ”„๋กœ์ ํŠธ ๋ณ„ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ๋‹ค

2020๋…„ 12์›” 11์ผ
ยท
1๊ฐœ์˜ ๋Œ“๊ธ€