Python98 JS강화학습04. 구구단 생성해서 출력하기 ex04.html EX04 출력단수 2 3 4 5 6 7 8 9 2023. 7. 12. JS강화학습03. 로또번호 생성해서 출력하기 ex03.html EX03 __ __ __ __ __ __ 2023. 7. 12. JS강화학습02. 버튼 클릭시 input text 값 가져와서 연산하고 출력하기 ex02.html EX02 2023. 7. 12. JS강화학습01. div 태그 안에 글씨 바꾸기 ex01.html EX01 Good Morning 2023. 7. 12. 파이썬(DJANGO)AJAX CRUD DB와 연결할 DAO파일 작성 dao_emp.py파일 코드 import pymysql class DaoEmp: # print("생성자") def __init__(self): self.conn = pymysql.connect(host='127.0.0.1', user='root', password='python', db='python', charset='utf8', port=3304) # Connection 으로부터 Dictoionary Cursor 생성 self.curs = self.conn.cursor(pymysql.cursors.DictCursor) #메소드 def selectList(self): # SQL문 실행 sql = """ select e_id, e_name, gen, addr from emp.. 2023. 7. 10. 파이썬(BeautifulSoup)사용해서 주식 데이터 크롤링(가져오기) import requests from bs4 import BeautifulSoup url = 'https://stock.mk.co.kr/domestic/all_stocks?type=kospi&status=industry' # url = 'https://stock.mk.co.kr/domestic/all_stocks?type=kosdaq&status=industry' response = requests.get(url) # print("response",response.text) html = response.text soup = BeautifulSoup(html, 'html.parser')#html형태로 바꾼다. box = soup.select('.row_sty') for idx,a in enumerate(b.. 2023. 7. 8. 이전 1 ··· 7 8 9 10 11 12 13 ··· 17 다음