上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: loginnum=$loginnum; $this->ab=$ab; } public function guancha($key,$val){ $this->obj[$key]=$val; } public function zhixing(){ if($this->obj){ for... 阅读全文
posted @ 2019-06-16 22:05 酷酷的城池 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 'val_3','$key_4'=>'val_4'); $arr_n =compact('key_1','key_2','data'); echo "compact:\n"; //extract根据键名导出变量 echo "extract:\n"; $arr_str = array('key_a'=>'val_a','key_b'=>'val_b','key_arr 阅读全文
posted @ 2019-06-14 17:51 酷酷的城池 阅读(584) 评论(0) 推荐(0) 编辑
摘要: /** * 加密函数 * * @param string $txt 需要加密的字符串 * @param string $key 密钥 * @return string 返回加密结果 */ function ds_encrypt($txt, $key = '') { if (empty($txt)) return $txt; if (empty($key... 阅读全文
posted @ 2019-06-14 08:59 酷酷的城池 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2019-05-16 09:26 酷酷的城池 阅读(271) 评论(0) 推荐(0) 编辑
摘要: import mathimport randomimport codecsimport requestsimport jsonid=1headers='''accept: */*accept-encoding: gzip, deflate, braccept-language: zh-CN,zh;q 阅读全文
posted @ 2019-05-15 14:31 酷酷的城池 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: import math import random from Crypto.Cipher import AES from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex import codecs import requests import base64 import rsa class downmusic(ob... 阅读全文
posted @ 2019-05-12 08:27 酷酷的城池 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 获取文件后缀os.path.splitext(file)[-1] 整型转字符窜>>> print str(10000L)10000 json.dumps是将dict转化成str格式,json.loads是将str转化成dict格式。 #生成一个字典d = {'name':{},'age':{},'s 阅读全文
posted @ 2019-05-11 20:20 酷酷的城池 阅读(122) 评论(0) 推荐(0) 编辑
摘要: strs=''' content-type: application/x-www-form-urlencoded cookie: _iuqxldmzr_=32; _ntes_nnid=cb19ce2c34b69416ecbc14b408135460,1552790636492; _ntes_nuid=cb19ce2c34b69416ecbc14b408135460; WM... 阅读全文
posted @ 2019-05-11 20:19 酷酷的城池 阅读(788) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom bs4 import BeautifulSoupimport reimport osimport jsonfrom urllib import parseheaders='''Accept-Ranges: bytesAccess-Control-Allow-O 阅读全文
posted @ 2019-05-11 20:16 酷酷的城池 阅读(843) 评论(0) 推荐(0) 编辑
摘要: //过滤掉空值 function filter_array($arr, $values = ['',[]]){ foreach ($arr as $k => $v) { if (is_array($v) && count($v)>0) { $arr[$k] = filter_array($v, $values); } ... 阅读全文
posted @ 2019-04-30 15:08 酷酷的城池 阅读(307) 评论(0) 推荐(0) 编辑
摘要: $v) { $key=$this->getInitials($v[$targetKey]); if(isset($word[$key])){ array_push($word[$key],$data[$k]); }else{ $word[$key][]=$da... 阅读全文
posted @ 2019-04-29 16:17 酷酷的城池 阅读(689) 评论(0) 推荐(0) 编辑
摘要: [['','exp',"FIND_IN_SET(".$data['type'].",place_category)"]] 阅读全文
posted @ 2019-04-25 09:04 酷酷的城池 阅读(599) 评论(0) 推荐(0) 编辑
摘要: SELECT id,lng,lat,ROUND(6378.138*2*ASIN(SQRT(POW(SIN((lat1*PI()/180-lat*PI()/180)/2),2)+COS(lat1*PI()/180)*COS(lat*PI()/180)*POW(SIN((lng1*PI()/180-ln 阅读全文
posted @ 2019-04-23 17:41 酷酷的城池 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 来源public function geo(){ $redis = new \redis(); $redis -> connect('127.0.0.1',6379); //位置增加 $res= $redis->geoAdd("cs",13.361389,38.115556,'peter',13.3 阅读全文
posted @ 2019-04-23 14:12 酷酷的城池 阅读(642) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><link rel="stylesheet" href="index.css"><style> .father{width: 100px;height: 100px;text-align: center;background: red;}.son 阅读全文
posted @ 2019-04-20 22:50 酷酷的城池 阅读(245) 评论(0) 推荐(0) 编辑
摘要: mysql insert into 表明(uid,lng,lat) SELECT uuid,lng,lat FROM 表明 阅读全文
posted @ 2019-04-20 13:55 酷酷的城池 阅读(3652) 评论(0) 推荐(1) 编辑
摘要: 来源 css渐变 CSS 中设置的渐变是 gradient 数据类型,它是一种特别的image数据类型。使用background-image设置,可叠加设置多个; CSS3 定义了两种类型的渐变(gradients): 线性渐变 linear-gradient() 渐变的实现由两部分组成:渐变线和色 阅读全文
posted @ 2019-04-19 12:58 酷酷的城池 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: <style> .layui-table-cell,.layui-form,.layui-table-box,.layui-table-body{ overflow: visible; } /* 设置下拉框的高度与表格单元相同 */ td .layui-form-select{ margin-top 阅读全文
posted @ 2019-04-18 15:09 酷酷的城池 阅读(4004) 评论(0) 推荐(0) 编辑
摘要: 行级元素只能嵌套行级元素 块级元素可以嵌套任何元素 格力 p标签不能嵌套div a标签不能嵌套a标签 阅读全文
posted @ 2019-04-16 21:04 酷酷的城池 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 前端初学者可能都会碰到这个问题:有时候排版需要,会把一些块状元素的display属性设置为inline-block,如 浏览器中显示的结果: 虽然四个块状子元素排在了一行,但是子元素之间却留有空隙! 空隙产生原因:HTML中的换行符、空格符、制表符等空白符,字体大小不为0的情况下,空白符占据一定宽度 阅读全文
posted @ 2019-04-12 10:44 酷酷的城池 阅读(921) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=你的ak"></script> var map = new BMap.Map("map"); map.centerAndZoom("重庆", 11); map.e 阅读全文
posted @ 2019-04-12 10:01 酷酷的城池 阅读(2669) 评论(0) 推荐(0) 编辑
摘要: 单行 text-overflow: ellipsis; white-space: nowrap; overflow: hidden; 多行 display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; 阅读全文
posted @ 2019-04-08 22:22 酷酷的城池 阅读(123) 评论(0) 推荐(0) 编辑
摘要: <html>根元素; float的值不为none; overflow的值为auto、scroll或hidden; display的值为table-cell、table-caption和inline-block中的任何一个; position的值不为relative和static。 换言之,只要元素符 阅读全文
posted @ 2019-04-08 22:04 酷酷的城池 阅读(359) 评论(0) 推荐(1) 编辑
摘要: 5.3.2 vertical-align作用的前提 很多人,尤其CSS新手,会问这么一个问题:“为什么我设置了vertical-align却没任何作用?” 因为vertical-align起作用是有前提条件的,这个前提条件就是:只能应用于内联元素以及display值为table-cell的元素。 换 阅读全文
posted @ 2019-04-06 17:19 酷酷的城池 阅读(864) 评论(0) 推荐(0) 编辑
摘要: <span class="add" title="继续上传"></span> .add { display: inline-block; width: 76px; height: 76px; color: #ccc; border: 2px dashed; text-indent: -12em; t 阅读全文
posted @ 2019-04-06 13:30 酷酷的城池 阅读(235) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页