This commit is contained in:
msincenselee 2015-11-14 21:41:48 +08:00
parent 3f082b40f7
commit a69e8836d0

View File

@ -6,7 +6,7 @@ import matplotlib.pyplot as plt
try: try:
#连接数据库 #连接数据库
conn = MySQLdb.connect(host='vnpy.cloudapp.net', user='stockcn', passwd='7uhb*IJN', db='BackTest', port=3306) conn = MySQLdb.connect(host='vnpy.cloudapp.net', user='vnpy', passwd='vnpy', db='BackTest', port=3306)
#获取指针 #获取指针
cur = conn.cursor(MySQLdb.cursors.DictCursor) cur = conn.cursor(MySQLdb.cursors.DictCursor)