上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: list =['22222'] list[key] = '%'+item+'%' #这是重点 sql += ' {Connect} real_code like %s'.format(Connect=Connect) cursor = funs.con_db() cursor.execute(sql 阅读全文
posted @ 2020-01-09 13:37 酷酷的城池 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 import requests 2 import json 3 import random 4 from bs4 import BeautifulSoup 5 6 import time 7 8 import re 9 10 # 获取验证码 11 12 13 def get_code(url): 阅读全文
posted @ 2020-01-08 14:05 酷酷的城池 阅读(454) 评论(0) 推荐(0) 编辑
摘要: socket = 127.0.0.1:9000 之前这么写的总报502改后就没问题 [uwsgi] socket = /tmp/uwsgi.sock ;将Flask应用运行在这个端口 master = true wsgi-file = /zuhuobao/flaskobj/erp/server.py 阅读全文
posted @ 2020-01-07 17:01 酷酷的城池 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 如果打算用python与MySQL数据库进行交互,当然是需要安装第三方库MySQL-python的。如果直接用pip安装,通常会报出一个错误:python.h找不到,这是因为有一些依赖没有装上。 安装依赖(仅限Ubuntu):apt-get install libmysqlclient-dev li 阅读全文
posted @ 2020-01-06 17:59 酷酷的城池 阅读(3637) 评论(1) 推荐(1) 编辑
摘要: 参考 https://blog.csdn.net/leonhe27/article/details/81210000 "terminal.integrated.shell.windows": "cmd.exe", "terminal.integrated.env.windows": {"CMDER_ 阅读全文
posted @ 2019-12-25 09:14 酷酷的城池 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/flower1990/p/7466882.html php插件 https://www.cnblogs.com/maggie-php/p/10882529.html 插件地址 https://windows.php.net/downloads/pecl 阅读全文
posted @ 2019-12-23 10:03 酷酷的城池 阅读(149) 评论(0) 推荐(0) 编辑
摘要: $("#tab_2").unbind("scroll").bind("scroll", function (e) { var sum = this.scrollHeight; if (sum <= $(this).scrollTop() + $(this).height()) { if(tab_2. 阅读全文
posted @ 2019-12-19 14:54 酷酷的城池 阅读(454) 评论(0) 推荐(0) 编辑
摘要: http://sc.chinaz.com/jiaoben/160626109770.htm 阅读全文
posted @ 2019-12-12 13:44 酷酷的城池 阅读(82) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function (){ var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度) var nScrollTop = 0; //滚动到的当前位置 var nDivHight = $(".baojia").height(); $(".ba 阅读全文
posted @ 2019-12-11 16:08 酷酷的城池 阅读(662) 评论(0) 推荐(0) 编辑
摘要: width: 770px; height: 90px; line-height: 25px; box-shadow: 0 1px 0 rgba(255,255,255,.15), 0 2px 4px rgba(0,0,0,.2) inset, 0 0 12px rgba(255,255,255,.1 阅读全文
posted @ 2019-11-28 11:09 酷酷的城池 阅读(402) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>test</title> </head> <style type="text/css" media="screen"> *{ margin: 0; padding: 0; } #parent{ width: 100px; height: 100px; overflow: hidden; } #parent:hover img 阅读全文
posted @ 2019-10-12 19:18 酷酷的城池 阅读(81) 评论(0) 推荐(0) 编辑
摘要: chengfengchi@126.com 阅读全文
posted @ 2019-10-10 10:26 酷酷的城池 阅读(143) 评论(0) 推荐(0) 编辑
摘要: <?php/** * @param integer $sex 1 男 2 女 0 不限 * @param string $x 固定姓 * @param boolen $fx 是否加入复姓 true 是 false 否 * @return array ['x' => '姓', 'm' => '名', 阅读全文
posted @ 2019-10-09 11:42 酷酷的城池 阅读(2021) 评论(0) 推荐(0) 编辑
摘要: phpmyadmin上传到网站目录后提示解决phpmyadmin mysqli_real_connect(): (HY000/2002): No such file or directory的错误,解决方法把phpmyadmin目录中的配置文件config.sample.inc.php改成confi 阅读全文
posted @ 2019-10-04 11:25 酷酷的城池 阅读(24504) 评论(2) 推荐(2) 编辑
摘要: https://www.cnblogs.com/cpl9412290130/p/9583868.html 我的操作系统是ubuntu18.04,以下是我的mysql版本: 安装完成后,登录mysql的时候就出现了如下错误: 因为安装的过程中没让设置密码,可能密码为空,但无论如何都进不去mysql。 阅读全文
posted @ 2019-10-04 11:15 酷酷的城池 阅读(282) 评论(0) 推荐(0) 编辑
摘要: “惯例”这个词指的是“习惯的做法,常规的办法,一贯的做法”,与这个词对应的英文单词叫“idiom”。由于Python跟其他很多编程语言在语法和使用上还是有比较显著的差别,因此作为一个Python开发者如果不能掌握这些惯例,就无法写出“Pythonic”的代码。下面我们总结了一些在Python开发中的 阅读全文
posted @ 2019-10-04 10:05 酷酷的城池 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 写入以下配置: { "cmd": ["/usr/bin/python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python"} { "cmd": ["/u 阅读全文
posted @ 2019-10-04 10:04 酷酷的城池 阅读(503) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/IjKVF4yuJjf4TFsAxP3IoA 项目中常用的 19 条 MySQL 优化 zhangqh SegmentFault 前天 本文原载于 SegmentFault 社区 作者:zhangqh 整理编辑:SegmentFault 在写文章 阅读全文
posted @ 2019-09-29 09:46 酷酷的城池 阅读(4945) 评论(0) 推荐(0) 编辑
摘要: <?php // header("Content-type: text/html; charset=utf-8"); class Admin_Page_Gongyi_Packzip{ public $datasec = array (); public $ctrl_dir = array (); public $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x0 阅读全文
posted @ 2019-09-06 18:05 酷酷的城池 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 公钥与私钥 区块链技术的应用和开发,数字加密技术是关键。一旦加密方法遭到破解,区块链的数据安全将受到挑战,区块链的不可篡改性将不复存在。加密算法分为对称加密算法和非对称加密算法,区块链中主要应用非对称加密算法。 非对称加密指为满足安全性需求和所有权验证需求而集成到区块链中的加密技术。非对称加密通常在 阅读全文
posted @ 2019-08-24 13:21 酷酷的城池 阅读(3491) 评论(0) 推荐(0) 编辑
摘要: swoole 安装 用的是centOS php安装目录:/usr/local/php php.ini配置文件路径:/usr/local/php/etc/php.ini 1、安装swoole cd /usr/local/src wget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gz #版本不一样 https://g 阅读全文
posted @ 2019-08-23 00:08 酷酷的城池 阅读(8848) 评论(0) 推荐(0) 编辑
摘要: 安装 PHP 7.3 on Ubuntu sudo apt-get install python-software-properties sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install - 阅读全文
posted @ 2019-08-22 11:52 酷酷的城池 阅读(919) 评论(0) 推荐(1) 编辑
摘要: 服务器重启后,重启nginx时报错nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory),进入到logs目录发现确实没有nginx.pid文件 cd /usr/loca 阅读全文
posted @ 2019-08-22 11:31 酷酷的城池 阅读(5914) 评论(0) 推荐(5) 编辑
摘要: history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); 阅读全文
posted @ 2019-08-15 20:37 酷酷的城池 阅读(487) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title></title> </head> <script src="https://code.jquery.com/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8" 阅读全文
posted @ 2019-08-15 20:34 酷酷的城池 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页