βοΈ Python Programming36 [Python Distributions] μλμ½λ€(Anaconda) μ€μΉ λ°©λ² π μλμ½λ€(Anaconda) λ? μλμ½λ€(Anaconda)λ λ°μ΄ν° κ³Όν λ° κ³Όνμ μ»΄ν¨ν μ μν μ€ν μμ€ νμ΄μ¬ λ°°ν¬νμΌλ‘, νμ΄μ¬ μΈν°ν리ν°μ ν¨κ» NumPy, Pandas, SciPy, Scikit-learn, Jupyter Notebook λ±μ ν¨ν€μ§λ€μ ν¬ν¨νκ³ μλ€. μ΄λ¬ν ν¨ν€μ§λ€μ λ°μ΄ν° λΆμ λ° μκ°ν, κ³Όνμ κ³μ°κ³Ό κΈ°κ³ νμ΅ λ± λ€μν μμ μ μν΄ μ¬μ©λλ©°, μλμ½λ€(Anaconda)λ₯Ό ν΅ν΄ κ°νΈνκ² μ€μΉνκ³ κ΄λ¦¬ν μ μλ€. μλμ½λ€(Anaconda)λ λ€μν OSμμ μ¬μ©λ μ μμΌλ©°, νμ΄μ¬ λ²μ λ° νκ²½ κ΄λ¦¬, κ°μ νκ²½ μ€μ λ±μ κΈ°λ₯λ μ 곡ν¨μΌλ‘μ¨ μ΄λ₯Ό ν΅ν΄ λ€μν νλ‘μ νΈμ λν΄ λ 립μ μΈ νμ΄μ¬ νκ²½μ κ΅¬μΆ λ° κ΄λ¦¬ν μ μλλ‘ νλ€. π μλμ½λ€(Anaconda) .. 2023. 6. 3. [μ΄μμ νμ΄μ¬μ μ²μμ΄μ§!_2019 Ver] 9μ₯ Lab λμ λ¬Έμ νμ΄ # 9μ₯ Lab λμ λ¬Έμ νμ΄ 440p_Lab λμ λ¬Έμ ) from tkinter import * # λ²νΌμ μ νν μ μλμ§ μ¬λΆ κ²μ¬ --> μ ν κ°λ₯νλ©΄ o,x νμ def checked(i): global player button = list[i] # μ¬μ©μκ° μ νν μ μλ λ²νΌμ λλ₯Ό κ²½μ° μ무 νλλ μ·¨νμ§ μκ³ λ¦¬ν΄ if button["text"] != " ": return button["text"] = " " + player + " " button["bg"] = "yellow" if player == "X": button["bg"] = "yellow" else: button["bg"] = "lightgreen" # μΉν¨κ° κ°λ Έλμ§ νμΈ if (list[0]["text"] == list[1].. 2023. 2. 22. [μ΄μμ νμ΄μ¬μ μ²μμ΄μ§!_2019 Ver] 8μ₯ Lab λμ λ¬Έμ νμ΄ # 8μ₯ Lab λμ λ¬Έμ νμ΄ 371p_Lab λμ λ¬Έμ ) class Car: def __init__(self, speed=0, gear=1, fuel=0, distance=0, color="white"): self.__speed = speed self.__gear = gear self.__color = color self.__fuel = fuel self.__distance = distance def setSpeed(self, speed): self.__speed = speed def setGear(self, gear): self.__gear = gear def setColor(self, color): self.__color = color def Fuel_efficiency(self, fuel): se.. 2023. 2. 21. [μ΄μμ νμ΄μ¬μ μ²μμ΄μ§!_2019 Ver] 7μ₯ Lab λμ λ¬Έμ νμ΄ # 7μ₯ Lab λμ λ¬Έμ νμ΄ 338p_Lab λμ λ¬Έμ ) phrase = input('λ¬Έμμ΄μ μ λ ₯νμμ€: ') phrase = phrase.replace("In","") phrase = phrase.replace("The","") phrase = phrase.replace("Of","") phrase = phrase.replace("By","") acro = "" for word in phrase.upper().split(): acro += word[0] print(acro) 2023. 2. 21. [μ΄μμ νμ΄μ¬μ μ²μμ΄μ§!_2019 Ver] 6μ₯ Lab λμ λ¬Έμ νμ΄ # 6μ₯ Lab λμ λ¬Έμ νμ΄ 278p_Lab λμ λ¬Έμ ) def menu_choice(i): if i == 1: print(friends) elif i == 2: name = input('μ΄λ¦μ μ λ ₯νμμ€: ') friends.append(name) elif i == 3: del_name = input('μμ ν μ΄λ¦μ μ λ ₯νμμ€: ') if del_name in friends: friends.remove(del_name) else: print('μ΄λ¦μ΄ μΉκ΅¬ λͺ©λ‘μ μ‘΄μ¬νμ§ μμ΅λλ€.') elif i == 4: old_name = input('λ³κ²½ν μ΄λ¦μ μ λ ₯νμμ€: ') if old_name in friends: index = friends.index(old_name) new_name = input('.. 2023. 2. 20. [μ΄μμ νμ΄μ¬μ μ²μμ΄μ§!_2019 Ver] 5μ₯ Lab λμ λ¬Έμ νμ΄ # 5μ₯ Lab λμ λ¬Έμ νμ΄ 200p_Lab λμ λ¬Έμ ) def get_fac(n): sum = 1 for i in range(n, 1, -1): sum = sum * i return sum number = int(input('μ«μλ₯Ό μ λ ₯νμμ€: ')) final = get_fac(number) print(number, '! = ', final, sep='') 201p_Lab λμ λ¬Έμ ) def birthday(name): print('\n') print('μμΌ μΆνν©λλ€!') print('μμΌ μΆνν©λλ€!') print('μ¬λνλ ', name, 'μ', sep='') print('μμΌ μΆνν©λλ€!') name_plz = input('μ΄λ¦: ') birthday(name_plz) 203p_Lab λμ λ¬Έμ .. 2023. 2. 19. μ΄μ 1 2 3 4 Β·Β·Β· 6 λ€μ