Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import numpy as np
  2. import pymysql
  3. conn = pymysql.connect(
  4. host = "localhost",
  5. user = "root",
  6. password = "Meiguo2017!",
  7. database = "HOUSEPRICE")
  8.  
  9. cursor = conn.cursor()
  10. with open('~/desktop/Research/House_price/Zillow/06/ZAmt\SaleData.txt') as f:
  11. f.readline()
  12. print(f)
  13. f.close()
  14.  
  15.  
  16. sql = """
  17. SHOW TABLES;
  18. """
  19. cursor.execute(sql)
  20.  
  21. #if conn:
  22. #print("data base has already connected")
  23.  
  24. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement