自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (1)
  • 收藏
  • 关注

原创 RocketMQ 安装使用

【代码】RocketMQ 安装使用。

2023-05-22 15:33:39 96

原创 linux 查看外网IP

- curl ifconfig.me - curl cip.cc - curl icanhazip.com - curl ident.me - curl ipecho.net/plain - curl whatismyip.akamai.com - curl tnx.nl/ip - curl myip.dnsomatic.com - curl ip.appspot.com

2021-11-08 13:45:27 216

原创 linux 防火墙启动命令

查看防火状态 - systemctl status firewalld - service iptables status暂时关闭防火墙 - systemctl stop firewalld - service iptables stop永久关闭防火墙 - systemctl disable firewalld - chkconfig iptables off重启防火墙 - systemctl enable firewalld - service iptables

2021-11-08 11:15:14 1488

原创 查询系统表数据

查询数据库中所有表名select table_name from information_schema.tables 查询数据库所有字段名select column_name from information_schema.columns

2021-09-08 11:25:02 105

原创 阿里云 云视频会议

前端页面<!DOCTYPE html><html class="theme-normal"> <head> <meta charset="utf-8"/> <meta content="yes" name="apple-mobile-web-app-capable"/> <meta content="yes" name="apple-touch-fullscreen"/> <meta htt

2021-08-24 18:20:02 3031 2

原创 json和pickle

json序列化 json picklepickle 只有python能够识别json 能被所有语言识别dumps与loads# dumps:用来序列化一个对象# dumps 可以指定一下参数# sort_keys:根据key来排序# indent:以2个空格缩进# ensure_ascii: 可以序列化中文#如何序列化 与反序列化import jsond={'k1':'aa', 'k2':'bb', 'k3':'cc'}#json序列化res = json.dumps

2021-03-18 14:46:14 53

原创 python文件操作

文章目录文件打开模式使用文件打开模式控制文件读写操作模式r :只读模式w : 只写模式a : 只追加模式控制文件读写内容模式t : 读写的内容都是字符串特点:只适用于文本文件必须指定encoding参数b : 读写的内容都是bytes类型特点:一定不要指定encoding参数使用r 模式:如果文件不存在则报错,文件存在则将指针跳到文件的开头with open('c.txt', 'rt', encoding='utf-8') as f: res = f.read()

2021-03-17 16:29:22 90

原创 python数据类型使用

数据类型数字类型 int float用来记录数字相关的数据类型# int 用来记录整数类型数据# 如:年龄、年份、人数age = 18year = 2020count = 20#float 用来记录带小数点的数据类型# 如:工资、身高、体重salary = 1800.29height = 180.3weight = 50.2#数字类型使用#数学运算>>> a = 1>>> b = 2>>> c = a +

2021-03-09 19:14:48 108

原创 python 模块

**time **import timeres = time.time() #时间戳,从1970年1月1日 00:00:00到当前时间的秒数print(res) #1612145065.0112846res = time.localtime() # 本地时区的结构化时间print(res) #time.struct_time(tm_year=2021, tm_mon=2, tm_mday=1, tm_hour=10, tm_min=8, tm_sec=24, tm_wday=0, tm

2021-02-01 11:40:05 74

原创 python 函数递归

递归就是自己调自己递归没调用一次都会申请内存空间,python为了限制无限调用占用内存空间,把递归内部做了层级限制直接调用def func(): print(11) func()func()# 报错# RecursionError: maximum recursion depth exceeded while calling a Python object# python 内部机制递归最大层数,默认值是1000# 可以通过 sys.getrecursionlim

2021-01-28 16:40:31 54

原创 python 生成式

l = [1, 3, 4, 5, 6, 7, 8, 9]new_l = []for i in l: if i > 4: new_l.append(i)print(new_l)# 相当于上边的代码# i 是条件成立的值,循环判断条件,条件成立的话就把值加到列表里边去new_l =[i for i in l if i > 4]print(new_l)...

2021-01-28 15:22:35 104

原创 python 三元表达式

x = 1y = 2if x > y: print(x)else: print(y)# 相当于上边的if判断# 条件成立的值放到左边, 条件不成立的值放到右边res = x if x > y else yprint(res)

2021-01-28 15:07:50 94

原创 微信小程序 this.data 与 this.setData 区别

this.data 不能直接更新页面数据this.setData ({ })可以直接更新页面数据比如<view hidden='{{a}}' ></view>//可以直接更新页面数据,使页面元素隐藏this.setData({ a: true,})//不能更新页面数据,页面元素不会隐藏this.data.a = true;如...

2021-01-28 13:11:39 950

原创 记录:微信开发者工具和手机端显示页面不一样问题

页面元素隐藏在微信开发者工具上可以隐藏, 但是在手机端不能隐藏data: { a: false,}, <view hidden='{{!a}}' > </view>this.setData({ a: true,})解决办法:<!-- 获取值得时候去掉 !叹号 --><view hidden...

2021-01-28 13:11:23 5445

原创 微信小程序 openSetting:fail 此接口已废弃,请使用 OpenSetting 组件

微信小程序,在用户拒绝授权后,重新拉起授权 ,之前可以使用wx.openSetting接口来设置,但是现在这个接口已经废弃使用了。 方法1:使用 button 组件来使用此功能: <button open-type="openSetting" bindopensetting="handler">打开设置页</button> 方法2:由点击...

2021-01-28 13:10:55 3887

原创 微信小程序帧动画,实现动画效果

需要一组连续的图片.wxml 代码<view> <image wx:if="{{i==1}}" class='modelImg' src='http://body.youngor.com/body/Public/Upload/Virtual/2019-06-28/5d15de1b3fa8e.jpg'/> <image wx:if="{{i==2}}...

2021-01-28 13:10:36 4771 2

原创 微信小程序九宫格实现点击选中

jsfaceList:[ { "lximage": "../../images/l_xin.png", "id": 0 }, { "lximage": "../../images/l_fang.png", "id": 1 }, { "lximage": ...

2021-01-28 13:08:50 1388

原创 python 装饰器

无参装饰器def outter(func): # func:调用方法是传入的index的方法名 # (*args, **kwargs)表示什么值都可以接收,这里接收的是元组 (11, 22, 33) def wrapper(*args, **kwargs): print("args>>>>>>>", *args) # args>>>>>>> 11 22 print(

2021-01-27 19:11:11 134 1

原创 微信小程序app.js 操作 页面JS 的属性方法

app.js globalData 定义变量indexJS: null在页面 js把当前页面赋值给 app.jsapp.globalData.indexJS = this;在app.js 可以操作that.globalData.indexJS.setData({ }) //操作变量that.globalData.indexJS.method(); /...

2019-04-16 14:38:52 1378 1

原创 微信小程序 获取元素下标

wxml代码:<view> <view data-index="{{index}}" wx:for='{{imgList}}' wx:key='item' bindtap='hairstyle'> <image class='hair_img' src='{{item}}'/> </view> </vi...

2019-04-12 14:33:08 2975 1

原创 微信小程序获取二维码参数

微信扫描带参数的二维码,进入小程序获取二维码参数,可以用onLoad 函数在页面加载的时候获取参数 /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { this.data.topic = options.topic; //topic 为参数名称,这样就可以获取到二维码里的参数 }...

2019-04-04 09:39:32 1629

原创 微信小程序连接emqtt

公司要做一个微信小程序,用到了mqtt,实现发布消息,订阅消息,在网上查资料,可以用paho-mqtt.js由于小程序比较坑的缘故,首先你要有域名,而且小程序只支持安全的访问方式,你需要申请证书,审核通过了之后才可以用一、paho-mqtt.js/******************************************************************...

2019-03-20 13:39:26 2243 6

原创 Linux下Redis的安装部署

一、redis的下载安装1、首先在官网上下载Redis, 稳定版的就好2、将下载好的redis压缩包上传到Linux服务器上3、解压tar -zxvf redis-3.2.1.tar.gz //解压4、编译cd /usr/local/redis-3.2.1 //cd到刚刚解压的redis目录下make //执行make 命令//再进入到s...

2019-03-19 13:48:01 117

城市-2023年9月7日.xlsx

省份名称 省份代码 城市名称 城市代码 区县名称 区县代码 乡镇名称 乡镇代码 北京市 110000 北京市 110100 东城区 110101 交道口街道 110101003 北京市 110000 北京市 110100 东城区 110101 朝阳门街道 110101007 北京市 110000 北京市 110100 东城区 110101 东四街道 110101006 北京市 110000 北京市 110100 东城区 110101 安定门街道 110101004 北京市 110000 北京市 110100 东城区 110101 景山街道 110101002 北京市 110000 北京市 110100 东城区 110101 北新桥街道 110101005 北京市 110000 北京市 110100 东城区 110101 和平里街道 110101010 北京市 110000 北京市 110100 东城区 110101 东直门街道 110101009 北京市 110000 北京市 110100 东城区 110101 东华门街道 110101001 北京市 110000 北京市 110100

2023-09-07

city-2023年9月7日.sql

INSERT INTO `sys_city` VALUES (1, '中国', 0, '中国', 0, '中国', '116.3683244', '39.915085', 'China'); INSERT INTO `sys_city` VALUES (110000, '北京市', 1, '北京', 1, '中国,北京', '116.417500', '39.938500', 'Beijing'); INSERT INTO `sys_city` VALUES (110100, '北京市', 110000, '北京市', 2, '中国,北京,北京市', '116.407526', '39.904030', 'Beijingshi'); INSERT INTO `sys_city` VALUES (110101, '东城区', 110100, '东城区', 3, '中国,北京,北京市,东城区', '116.416357', '39.928353', 'Dongchengqu'); INSERT INTO `sys_city` VALUES (110102, '西城区', 110100, '

2023-09-07

省市区镇街道sql,到街道46000多条数据

INSERT INTO `sys_city1` VALUES (110000, '北京', 1, '北京', '116.405289', '39.904987', 1, 'tr_0', 1); INSERT INTO `sys_city1` VALUES (110100, '北京市', 110000, '北京', '116.405289', '39.904987', 2, 'tr_0 tr_110000', 1);

2022-11-04

2022省市区sql,只有省市区

INSERT INTO `sys_city` VALUES (110101, '东城区', 110100, '东城', 3, '010', '100010', '中国,北京,北京市,东城区', '116.41005', '39.93157', 'Dongcheng', 1);

2022-11-04

paho-mqtt.js

危险小程序对mqtt支持,放到微信小程序项目下,在js引入就可以使用

2019-03-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除