10 2018 档案

Python 直接赋值、浅拷贝和深度拷贝解析
摘要:http://www.runoob.com/w3cnote/python-understanding-dict-copy-shallow-or-deep.html 阅读全文

posted @ 2018-10-31 01:48 andy_1 阅读(130) 评论(0) 推荐(0) 编辑

Pandas DataFrame数据的增、删、改、查
摘要:Pandas DataFrame数据的增、删、改、查 https://blog.csdn.net/zhangchuang601/article/details/79583551 #删除列 df_2 = df_1.drop(columns=['deptNo','routeNo']).copy() de 阅读全文

posted @ 2018-10-29 20:18 andy_1 阅读(479) 评论(0) 推荐(0) 编辑

python正则表达式
摘要:Python 正则表达式 http://www.runoob.com/python/python-reg-expressions.html Python中正则表达式的详细教程 https://www.jb51.net/article/65286.htm https://www.cnblogs.com 阅读全文

posted @ 2018-10-23 14:49 andy_1 阅读(133) 评论(0) 推荐(0) 编辑

Python 字典(Dictionary)操作详解
摘要:https://www.jb51.net/article/47990.htm 六、字典内置函数&方法 Python字典包含了以下内置函数: cmp(dict1, dict2) #比较两个字典元素。len(dict) #计算字典元素个数,即键的总数。str(dict) #输出字典可打印的字符串表示。t 阅读全文

posted @ 2018-10-19 15:37 andy_1 阅读(546) 评论(0) 推荐(0) 编辑

MySQL root密码忘记后更优雅的解决方法
摘要:MySQL root密码忘记后更优雅的解决方法 https://www.jb51.net/article/143453.htm /usr/bin/mysqld_safe --defaults-file=my.cnf --skip-grant-tables --skip-networking &/us 阅读全文

posted @ 2018-10-19 14:46 andy_1 阅读(155) 评论(0) 推荐(0) 编辑

linux下升级python
摘要:服务linux器自带的是python2.6.无法安装 pip install paramiko。总是报错。 系统自带的Python2.6又不能动。无奈只好再安装一个版本。 自己尝试手动升级python2.7 最后还是放弃了,因为安装成功了,pip等组件也没法使用,尴尬。 最终, 还是改为用anaco 阅读全文

posted @ 2018-10-18 11:05 andy_1 阅读(5697) 评论(0) 推荐(0) 编辑

mysql实现复杂groupby : GROUP_CONCAT
摘要:select che,GROUP_CONCAT(concat_ws(':',routeNo,num) ORDER BY num DESC SEPARATOR ',') as gg from (select che,routeNo,count(distinct paicheNo) as num from tableA where carrierType=1... 阅读全文

posted @ 2018-10-17 17:47 andy_1 阅读(1484) 评论(0) 推荐(0) 编辑

Python常用time处理
摘要:#coding=utf-8 # python2.7工具语句 from sys import version_info import time import datetime if version_info<(3,0): print('注意当前是:python2') else: print('python3') #把datetime转成字符串 def unixtime_toS... 阅读全文

posted @ 2018-10-16 15:24 andy_1 阅读(342) 评论(0) 推荐(0) 编辑

spark安装
摘要:参见:https://archive.apache.org/dist/spark/spark-2.3.2/spark-2.3.2-bin-hadoop2.7.tgz cd /root/lhc wget https://archive.apache.org/dist/spark/spark-2.3.2 阅读全文

posted @ 2018-10-15 16:34 andy_1 阅读(122) 评论(0) 推荐(0) 编辑

python2脚本批量转成python3
摘要:#查看 模块的安装路径 import tools print (tools.__file__)#进入cmd,然后python 2to3.py -w 需要批量转换的文件所在的路径#参考:http://www.cnblogs.com/wushuaishuai/p/7611915.html 阅读全文

posted @ 2018-10-11 11:21 andy_1 阅读(468) 评论(0) 推荐(0) 编辑

linux zip压缩文件
摘要:http://man.linuxde.net/zip 阅读全文

posted @ 2018-10-08 17:52 andy_1 阅读(136) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示