上一页 1 ··· 5 6 7 8 9 10 11 下一页
  2019年2月25日
摘要: a,b,c=[1,2,[2,3]] http 协议基于tcpip协议进行,socket与业务逻辑之间用的是wsgi协议 HTTP(HyperText Transport Protocol)是超文本传输协议 #基于TCP/IP协议基础上的应用层协议,底层实现仍为socket # 基于请求-响应模式: 阅读全文
posted @ 2019-02-25 16:17 paulgeo 阅读(161) 评论(0) 推荐(0)
  2019年2月18日
摘要: 1.用pymysql建立连接用属性建立多连接会很 容易报错,改用方法返回值 MySQL连接池 阅读全文
posted @ 2019-02-18 20:58 paulgeo 阅读(219) 评论(0) 推荐(0)
  2019年2月15日
摘要: Python cs架构 默认gbk编码# struct处理后是一个数组,i4位 l8位# json.dumps()用于将dict类型的数据转成str,因为如果直接将dict类型的数据写入json文件中会发生报错,因此在将数据写入时需要用到该函数。 json.loads()用于将str类型的数据转成d 阅读全文
posted @ 2019-02-15 19:52 paulgeo 阅读(181) 评论(0) 推荐(0)
  2019年1月30日
摘要: 按钮 <button type='buttton'></button>不提交触发点击事件 <button type="reset"></button>重置触发点击事件 <button type="submit"></button>提交 <input type="submit" value="我也是提 阅读全文
posted @ 2019-01-30 22:41 paulgeo 阅读(418) 评论(0) 推荐(0)
  2019年1月25日
摘要: jq事件鼠标事件// 悬浮box.onmouseenter = function () { box.style.cursor = "pointer"; console.log("鼠标悬浮了")}// 移动box.onmousemove = function () { console.log("鼠标在 阅读全文
posted @ 2019-01-25 19:34 paulgeo 阅读(364) 评论(0) 推荐(0)
  2019年1月24日
摘要: 1.事件绑定函数 var a=document.querySelector('') a.onclick=function h() 先有函数 a.onclick=function h绑定地址 / 循环绑定时. i分别是0,1,2,3, 也就给每一个li进行了点击事件的绑定 lis[i].onclick 阅读全文
posted @ 2019-01-24 16:46 paulgeo 阅读(159) 评论(0) 推荐(0)
  2019年1月23日
摘要: 数据类型转换 a=3a.14 转字符串 String(a) 3.14.toString() 整数的话..String ''+3.14 转布尔 Boolean(a)为true a='3a.14' Number(a)强转的话NAN NumberInt(a)3 NumberFoat(a)由于a的存在也是3 阅读全文
posted @ 2019-01-23 19:30 paulgeo 阅读(163) 评论(0) 推荐(0)
  2019年1月22日
摘要: js 属于编写运行在浏览器的脚本语言 js 采用的是ECMAScript语法 可以操作文档对象DOM 操作浏览器对象模型BOM 外联式 内联式 行间式 行间式 <div class='box' onclick='this.style.borderRadius="10PX"'></div> <div 阅读全文
posted @ 2019-01-22 19:37 paulgeo 阅读(264) 评论(0) 推荐(0)
  2019年1月21日
摘要: 伪类边框 设计一个不占位的边框 => 伪类 :before | :after .box:before{content:";width: height: color: left bottom: position:absolution } .box:after{content:";width: heig 阅读全文
posted @ 2019-01-21 20:07 paulgeo 阅读(211) 评论(0) 推荐(0)
  2019年1月18日
摘要: 浮动布局 .div{float:left|right} 让块级在父级限制下同行显示,一行显示不下自动换行 一行要固定个数需要父级宽度固定 子级不再撑开父级高度,如果需要,设置:after{content:'';display:block;clear:both} 固定定位 以页面为参考系固定;设置po 阅读全文
posted @ 2019-01-18 18:58 paulgeo 阅读(270) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页