服务端 from socket import * #创建套接字 ip_port = ('192.168.0.143',8888) udp_socket = socket(AF_INET,SOCK_DGRAM) udp_socket.bind(ip_port) #消息传输 print("等待接收") ...
分类:
其他好文 时间:
2020-07-06 12:36:11
阅读次数:
67
mongodb.conf bind_ip = 0.0.0.0 #允许所有IP访问port = 27017 # 实例运行在27017端口(默认)dbpath = d:/mongodb/db # 数据文件夹存放地址(db要预先创建)logpath = d:/mongodb/logs/log110.log ...
分类:
数据库 时间:
2020-07-06 10:58:21
阅读次数:
70
Vue的通信方式有几种?隔代组件的通信用哪种方式解决? 一:props/$emit 父传子: // parent.vue<s-child v-bind:infos="informations" /> // infos对应子组件上 data() { return { informations: [ { ...
分类:
其他好文 时间:
2020-07-06 01:38:52
阅读次数:
97
应用场景:父组件对子组件的内容进行加工处理 我们先来看2.6版本之前的写法: // 父组件 <template> <div id="app"> <child> <template slot-scope="a"> <p v-text="a.item"></p> </template> </child> ...
分类:
其他好文 时间:
2020-07-05 21:21:07
阅读次数:
66
Heapster+InfluxDB+Grafana: [root@centos7 ~]# cat influxdb.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: monitoring-influxdb nam ...
分类:
数据库 时间:
2020-07-05 20:53:50
阅读次数:
90
[HTML DOM tabIndex 属性 元素对象定义和用法tabIndex 属性可设置或返回单选按钮的 tab 键控制次序。语法HTMLElementObject.tabIndex=tabIndex浏览器支持 所有主要浏览器都支持 tabIndex 属性实例实例改变三个链接的 tab 排序:Br... ...
分类:
Web程序 时间:
2020-07-05 12:04:40
阅读次数:
157
接上一篇文章,这篇文章来整理一下其他的一些vue指令。先申明一下,关于指令的一些概念都搬运自官网,如果有哪些不理解可以直接上官网进行学习。 列表渲染之v-for Expects: Array | Object | number | string | Iterable (since 2.6) Usag ...
分类:
Web程序 时间:
2020-07-05 00:43:56
阅读次数:
72
sudo rosdep init报错如下: ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/2 ...
分类:
其他好文 时间:
2020-07-05 00:22:56
阅读次数:
643
学习字符串format()函数,执行如下语句时报错:ValueError: cannot switch from manual field specification to automatic field numbering,意思为:值错误:无法从手动字段规范切换到自动字段编号 原来是因为自动编号和 ...
分类:
其他好文 时间:
2020-07-04 20:32:26
阅读次数:
86