上一页 1 ··· 3 4 5 6 7
摘要: # 基本操作net start mysql # 启动服务 net stop mysql # 停止服务 mysql -uroot -p密码 -P3306 -h-127.0.0.1 # root用户登录SHOW GRANTS FOR user_name; # 显示一个用户的权限,显示结果类似于gran... 阅读全文
posted @ 2018-07-25 17:10 todaynowind 阅读(211) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import pandas as pdimport numpy as npimport matplotlib.pyplot as plt # Seriess1=pd.Series([12, -1, 7, 9], index=["a", "b", "c" 阅读全文
posted @ 2018-07-25 08:55 todaynowind 阅读(224) 评论(0) 推荐(0) 编辑
摘要: (此处省略了前置的fig定义及设置代码)ax1=fig.add_subplot(241) # 定义子图1 ax1.set(title=u"子图标题",xlabel=u"x轴标题",ylabel=u"y轴标题") # 设置标题 ax1.axis([0,4,0,600]) # 设置坐标范围 pd.DataFrame(用于绘制图形的数据).plot(ax=ax1,kind='bar'... 阅读全文
posted @ 2018-07-22 15:44 todaynowind 阅读(425) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_minus']=False # 用来正常显示负号 fig=plt.figure(figsize... 阅读全文
posted @ 2018-07-22 15:38 todaynowind 阅读(227) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt pd.set_option('display.width', 2000, 'display.max_rows', None,'display.max_columns', None) # 设置数据显示 ... 阅读全文
posted @ 2018-07-22 15:32 todaynowind 阅读(418) 评论(0) 推荐(0) 编辑
摘要: import numpy as np #1 a=np.array([1,2,3]) # 创建数组 print("a:{}\ntype(a):{}\na.dtype:{}\na.ndim:{}\na.size:{}\na.shape:{}\na.itemsize:{}\n"\ .format(a,type(a),a.dtype,a.ndim,a.size,a.shape,a... 阅读全文
posted @ 2018-07-22 15:27 todaynowind 阅读(364) 评论(0) 推荐(0) 编辑
摘要: (此处创建连接和游标代码省略) sql1 = "SELECT * FROM 表名称" # SQL语句1 cursor1.execute(sql1) # 执行SQL语句1 read1=list(cursor1.fetchall()) # 读取结果1 sql2="SHOW FULL COLUM... 阅读全文
posted @ 2018-07-20 21:35 todaynowind 阅读(2218) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import pymysql # 连接数据库 conn1=pymysql.Connect(host="127.0.0.1", user="root", password="密码", port=3306, ... 阅读全文
posted @ 2018-07-20 17:31 todaynowind 阅读(1254) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7