摘要: ### 阅读全文
posted @ 2017-08-18 10:36 陈奕迅-可以了 阅读(988) 评论(0) 推荐(0) 编辑
摘要: ### 版本1和版本2的区别就是一个会按照图片原来的顺序,一个直接给所有的文件重新命名。 ### 版本1 说明:修改os.listdir(path)下面的文件名,并且按 Newdir=os.path.join(path,'img'+numtag +filetype) 这个命名方式给文件重新命名。 版 阅读全文
posted @ 2017-08-09 18:26 陈奕迅-可以了 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 首先配置允许访问的用户,采用授权的方式给用户权限 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION; 说明:root是登陆数据库的用户,123456是登陆数据库的密码,*就是意味着任何来 阅读全文
posted @ 2017-08-07 08:59 陈奕迅-可以了 阅读(1329) 评论(0) 推荐(1) 编辑
摘要: import pymysql import uuid # db = pymysql.connect(host='192.168.0.100',user='root',passwd='123456',db='mysql') # # cur = db.cursor() # # cur.execute("SELECT Host,User FROM user") # # cur.execute("SEL... 阅读全文
posted @ 2017-08-06 23:45 陈奕迅-可以了 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 参考学习博客。 http://blog.csdn.net/icamera0/article/details/50762050 http://blog.csdn.net/column/details/pythonpil.html?&page=2 http://pillow.readthedocs.io 阅读全文
posted @ 2017-07-30 22:22 陈奕迅-可以了 阅读(160) 评论(0) 推荐(0) 编辑
摘要: # # 阅读全文
posted @ 2017-07-30 18:18 陈奕迅-可以了 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: Python的图形库(PIL), 不过在官方下载了支持Python2.7的PIL Windows安装包后,运行过程中发现会报_imagingft C module is not installed错误。 解决方法: 1.在python27 的目录下执行 pip install pillow 2.到h 阅读全文
posted @ 2017-07-30 12:51 陈奕迅-可以了 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: # 阅读全文
posted @ 2017-07-29 12:03 陈奕迅-可以了 阅读(205) 评论(0) 推荐(0) 编辑
摘要: import socket,hashlib client = socket.socket() client.connect(("localhost", 6971)) ##开始连接 (ServerIP,ServerPort) while True: cmd = input("Please input the message>>").strip() print(cmd) ... 阅读全文
posted @ 2017-07-29 12:02 陈奕迅-可以了 阅读(274) 评论(0) 推荐(0) 编辑
摘要: -0- 阅读全文
posted @ 2017-07-28 19:21 陈奕迅-可以了 阅读(252) 评论(0) 推荐(0) 编辑