Python with Mysql

샘플 myslq python 파이선에서 Mysql연동하기. PyMySQL 설치하기 # python3 version pip3 intall pymysql Example 작성해보기. #!/usr/bin/python3 import pymysql # Open database connection db = pymysql.connect("localhost", "testuser", "test123", "TESTDB") # prepare a cursor object using cursor() method cursor = db.cursor() # execute SQL query using execute() method. cursor.execute("SELECT VERSION()") # Fetch... [Read More]

Welcome to Jekyll!

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when... [Read More]

GFM 사용 테스트

GFM은 — 다음과 같이 사용이 가능합니다. ###어렵지 않습니다. 코드 표현방법 ————- “ var i = 0 “ var foo = “bar” ##리스트 표현방법 플러스 별 – 하이픈 ###숫자리스트 숫자 숫자 링크 블로그 #주의 이렇게 해야합니다. “ var i = 0; “ 이건 안됩니다. var i = 0; 숫자 리스트로 하면... [Read More]

python regular exp

python은 re를 이용하며 이는 Perl 스타일의 regular-expression이다. re모듈은 처리를 수행하다가 예외가 발생하면 re.error이 raise된다. 기본 패턴 a, X, 9, < - 일반적인 캐릭터로 그 자체로 매칭이 되는지 검사한다. . (a period) - 뉴라인 ‘\n’을 제외한 한 문자 캐릭터와 매치된다. \w - “word”에 해당하는 캐릭터를 매치한다. letter 혹은, digit혹은 underbar등이 해당된다.... [Read More]

markdown

This is an H1 This is an H2 This is a H1 This is a H2 This is a H3 This is a H4 This is a H5 This is a H6 This is a blockqute. Example Text It’s very easy to make some words bold and other words italic... [Read More]