버미다

고정 헤더 영역

글 제목

메뉴 레이어

버미다

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (251)
    • html, css (83)
    • 서문 (3)
    • python (125)
    • c언어 (13)
    • gpt활용 (1)
    • pymysql (17)
    • SQLD (8)
    • 업무 (1)

검색 레이어

버미다

검색 영역

컨텐츠 검색

python

  • 파이썬 기초(슬라이씽)

    2024.07.04 by bumychoi

  • 파이썬 기초문법 3

    2024.07.03 by bumychoi

  • 파이썬 기초문법 2

    2024.07.03 by bumychoi

  • 파이썬 기초문법

    2024.07.03 by bumychoi

  • 단어공부 앱

    2024.06.30 by bumychoi

  • 기본기 다지기 -예외규정

    2024.06.29 by bumychoi

  • Tomodoro 만들기

    2024.06.25 by bumychoi

  • 타이머 만들기

    2024.06.23 by bumychoi

파이썬 기초(슬라이씽)

x=["a","b","c","d","e","f","g","h","i","j","k","l","m"]print(x[4:7])print(x[-9:-6])print(x[4:-6])print(x[-9:7])print(x[-9:-6:1])x=["a","b","c","d","e","f","g","h","i","j","k","l","m"]print(x[4:7])print(x[-9:-6])print(x[4:-6])print(x[-9:7])print(x[-9:-6:1])print(x[6:3:-1])print(list(reversed(x[6:3:-1])))

python 2024. 7. 4. 18:56

파이썬 기초문법 3

4. 인데씽x=['orange','apple','kiwi','banana','strawberry']print(x[3])print(x[-2])print(x[3:4])print(x.index("banana"))print(x[x.index("banana")])print("banana" in x)banana banana ['banana'] 3 banana Trueprint(x[x.index("banana",2,len(x))]) 시작,끝banana

python 2024. 7. 3. 21:35

파이썬 기초문법 2

3. 타입케스팅x="Seoul"y='25'z=x+yprint(f'x+y:{z}') # str' object is not callableetc="KOREASEOUL"print(etc()) print(etc()) ^^^^^ TypeError: 'str' object is not callablec=[1,2,3,4,5]print(c['2']) TypeError: list indices must be integers or slices, not strc=[1,2,3,4,5]print(c[2])

python 2024. 7. 3. 21:24

파이썬 기초문법

1. 네이밍a=15print(a)_b=3.14print(_b)2c= int(77)_7d=float(5.14)print(_7d)1.영문 문자와 숫자를 사용 가능2. 대소문자를 구분3. 문자부터 시작, 숫자는 불가4._(언더스코어)가능5. 특수문자(+,-,*,/,$,@,&,%) 불가 2. x= 15y= 25print(f'x==y:{x==y}')print(f'x is y : {x is y}')x==y:False 값비교x is y : False x= ['orange','banana','apple']y= xprint(f'x==y:{x==y}')print(f'x is y:{x is y}')x==y:True x is y:True 3.x=["orange","banana","apple"]y=["orange","bana..

python 2024. 7. 3. 21:08

단어공부 앱

from tkinter import *import pandasimport random current_card = {}to_learn ={}BACKGROUND_COLOR = "#B1DDC6"try: data = pandas.read_csv("data//words_to_learn.csv")except FileNotFoundError: original_data = pandas.read_csv("data//french_words.csv") print(original_data) to_learn = original_data.to_dict(orient="records")else: to_learn = data.to_dict(orient="records")def next_card(): g..

python 2024. 6. 30. 10:39

기본기 다지기 -예외규정

유데미 안젤라 100과정 초반 기초과정 요점 정리https://www.udemy.com/course/best-100-days-python/learn/lecture/29148934#overview 30일차 - try: file = open("a_file.txt") a_dictionary = {"key":"value"} print(a_dictionary["key"])except FileNotFoundError: file=open("a_file.txt","w") file.write("something_2")except KeyError as error_message: print(f"the key {error_message} does not exist.")else: cont..

python 2024. 6. 29. 21:13

Tomodoro 만들기

from tkinter import *import math # ---------------------------- CONSTANTS ------------------------------- #PINK = "#e2979c"RED = "#e7305b"GREEN = "#9bdeaa"YELLOW = "#f7f5cc"FONT_NAME = "Courier"WORK_MIN = 25SHORT_BREAK_MIN = 5LONG_BREAK_MIN = 20reps = 0timer = None# ---------------------------- TIMER RESET ------------------------------- # def reset_timer(): window.after_cancel(timer) # 00..

python 2024. 6. 25. 00:44

타이머 만들기

from tkinter import *import math # ---------------------------- CONSTANTS ------------------------------- #PINK = "#e2979c"RED = "#e7305b"GREEN = "#9bdeaa"YELLOW = "#f7f5cc"FONT_NAME = "Courier"WORK_MIN = 25SHORT_BREAK_MIN = 5LONG_BREAK_MIN = 20# ---------------------------- TIMER RESET ------------------------------- # # ---------------------------- TIMER MECHANISM -----------------------------..

python 2024. 6. 23. 21:30

추가 정보

인기글

최신글

페이징

이전
1 ··· 4 5 6 7 8 9 10 ··· 16
다음
TISTORY
버미다 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바