전체 글 (28) 썸네일형 리스트형 [CSS] 관련사이트 RGB hex 값 Color Hunt - Color Palettes for Designers and Artists Color Hunt is a free and open platform for color inspiration with thousands of trendy hand-picked color palettes colorhunt.co CSS 폰트 Google Fonts Making the web more beautiful, fast, and open through great typography fonts.google.com CSS-Tricks (zooming background images) Zooming Background Images | CSS-Tricks The following is a gue.. [PYTHON] __mro__ 컴퓨터가 이해하는 객체 우선순위를 파악하는 함수 class C1(): def c1_m(self): print("c1_m") def m(self): print("C1 m") class C2(): def c2_m(self): print("c2_m") def m(self): print("C2 m") class C3(C2, C1): pass print(C3.__mro__) [PYTHON] Flask 파이썬 웹 프레임워크 from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run() [PYTHON] Override 부모클래스에 상속된 클래스의 메소드(부모클래스)를 변경하고 싶을때 사용 class C1: def m(self): return 'parent' class C2(C1): def m(self): return super().m() + ' child' pass o = C2() print(o.m()) [PYTHON] Random 모듈 난수 생성 함수를 포함한 모듈. https://docs.python.org/3/library/random.html random — Generate pseudo-random numbers — Python 3.8.2 documentation random — Generate pseudo-random numbers Source code: Lib/random.py This module implements pseudo-random number generators for various distributions. For integers, there is uniform selection from a range. For sequences, there is uniform selection of a rando docs.pyt.. [PYTHON] 기본기 강의 복습 , , # 반복문의 큰 종류로는 2가지가 있다. (for, while) # for문과 while문은 상호교환 가능 # while은 보통 무한루프.(while true) for i in range(10): print("철수 : 안녕 영희야, 뭐해?") print("영희 : 안녕 철수야, 그냥 있어.") i = 0 while i =10 and i [PYTHON] 파이썬 예제 뽀개기 텍스트의 첫 단어 출력 def first_word(): word = input() A = word.replace(".", " ") and word.replace("," , " ") A = word.split() print(A[0]) first_word() [PYTHON] 기본 함수 1. 문장이 ~~로 끝나는지 확인 → .endswith() # Python code shows the working of # .endswith() function text = "geeks for geeks." # returns False result = text.endswith('for geeks') print (result) # returns True result = text.endswith('geeks.') print (result) # returns True result = text.endswith('for geeks.') print (result) # returns True result = text.endswith('geeks for geeks.') print (result) 2. A값을 B값으로.. 이전 1 2 3 4 다음