![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
shenghuiping2001
被裁员,失业中......(毕业于南京航空航天大学,在IBM工作过10年,现在专注splunk架构和数据分析。拥有Oracle: OCP认证, AWS: ASP认证, Azure: admin系统管理员认证。)
展开
-
记录linux 安装 MYSQL 的点点滴滴
1:今天当我mysql 的时候,报错:[root@oc2246430752 etc]# mysqlERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)后来,当我安装好:yum install -y mariadb-server...原创 2019-04-20 20:17:48 · 261 阅读 · 0 评论 -
安装mysql-python 报错mysql中确缺失mysql_config的方法
问题:在redhat 上pip install mysql-python,报错如下# pip install mysql-pythonDownloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: /usr/bin/mysql_config: No such fil...原创 2019-04-20 11:30:49 · 1026 阅读 · 0 评论 -
Python 安装 MySQL-python ImportError: No module named 'ConfigParser'
系统: redhatPython : Python 3.7安装 MySQL-python ,结果出错:ImportError: No module named 'ConfigParser'Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ry1be27_/mysql-pyth...原创 2019-04-20 10:12:34 · 448 阅读 · 0 评论 -
python - List 的学习(sort - remove - pop)
1: 关于list 的排序和 最大最小值:theList = [1, 2, 33, 3, 4]low = min(theList)print (low)high = max(theList)print(high)theList.sort()print (theList)看一下output:133[1, 2, 3, 4, 33]2: 看一下remove 和pop...原创 2019-04-24 11:11:16 · 383 阅读 · 0 评论 -
新版PyCharm运行报错
报错如下:Traceback (most recent call last):File "/usr/lib/python2.7/encodings/__init__.py", line 74, in search_functionentry = _cache.get(encoding, _unknown)AttributeError: 'NoneType' object has no ...原创 2019-04-24 10:01:41 · 486 阅读 · 0 评论 -
像Excel一样使用python进行数据分析 (周末两天的成果)
1: 先把下面表格再EXCEL 中保存:name city age salary birthday david shanghai 39 12000 1981-08-20 jerry shanghai 40 12001 1981-08-21 tina beijing 41 12002 19...原创 2019-04-28 06:51:47 · 1956 阅读 · 0 评论 -
Pycharm 里面找不到已经阿安装的model
1: 先参考link: https://blog.csdn.net/pfm685757/article/details/46122225发现我已经安装好了ipython, 在linux 里面input ipython 出现其安装目录: /usr/local/bin/python3.72: 参考上面link 的方法,在 setting --> project interpreter -...原创 2019-04-27 09:35:20 · 643 阅读 · 0 评论 -
Python 对Mysql数据库的操作 - 实验
1:今天当我尝试向数据库里面插入数据:先看一下 database 里面的database:mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema || s...原创 2019-04-21 19:03:47 · 480 阅读 · 0 评论 -
Python 连接MYSQL 的第一个例子
新建一个Python project, 里面建一个python file: connect_DB.pyimport pymysql# 打开数据库连接db = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='Sheng2020', db='mysql', charset='utf8')cursor = d...原创 2019-04-20 21:36:38 · 392 阅读 · 0 评论 -
[转载] 安装 mysql
安装mysql数据库 1、安装工作: 下载 mysql 源安装包 [root@ming ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 安装 mysql 源 [root@ming ~]# yum loca...转载 2019-04-20 16:45:47 · 109 阅读 · 0 评论