上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: ''' 学习pyhon基础 0xAF 十六进制 010 八进制 pow(2,3) 2 的3 次方 __future__ 把下一版本的特性导入当前版本\ 转移 r 标识源字符串python 有6中建序列:列表, 元祖 字符串 Unicode字符串 buffer对象 xrange对象通用序列操作: 索引 阅读全文
posted @ 2019-09-08 05:57 countryboy666 阅读(155) 评论(1) 推荐(0) 编辑
摘要: MQTT(消息队列遥测传输)是ISO 标准(ISO/IEC PRF 20922)下基于发布/订阅范式的消息协议。 它工作在 TCP/IP协议族上,是为硬件性能低下的远程设备以及网络状况糟糕的情况下而设计的发布/订阅型消息协议,为此,它需要一个消息中间件 。 用于:机器与机器(M2M)通信和物联网(I 阅读全文
posted @ 2019-08-11 09:29 countryboy666 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 从配置文件中读取信息 QVariantList getEffectdParameterListFromFile(){ QVariantList parameterList; QFile file(filePath); if (file.exists ()) { if (file.open (QIOD 阅读全文
posted @ 2019-08-10 22:30 countryboy666 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 从串口读取到的QByteArray数据,一般需要进行提取和解析,此时就需要QByteArray转换为各类型数据。1 转为HEX,2 转为不同进制数值并显示 3 转为整型、浮点型等数值类型; 4 转为字符串类型; 十六进制字符转化成int int hexCharToInt(char c) { if ( 阅读全文
posted @ 2019-08-10 14:02 countryboy666 阅读(168) 评论(0) 推荐(0) 编辑
摘要: SOC,或者SoC,是一个缩写,包括的意思有:1)SoC:System on Chip的缩写,称为芯片级系统,也有称片上系统,意指它是一个产品,是一个有专用目标的集成电路,其中包含完整系统并有嵌入软件的全部内容。2)SOC: Security Operations Center的缩写,属于信息安全领 阅读全文
posted @ 2019-08-08 21:59 countryboy666 阅读(1937) 评论(0) 推荐(0) 编辑
摘要: $ cat sync#!/bin/sh#$1 IP#$2 syncMax 同步上限#$3 syncMin 同步下限#$4 强制同步标志echo "服务器:$1 上限:$2 下限:$3 强制同步标志:$4" if [ $4 == 1 ];then echo "强制同步" echo "111111"| 阅读全文
posted @ 2019-08-08 20:13 countryboy666 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh#$1 IP#$2 netmask#$3 gwnetWorkCard=eno1 //以太网configFile=/etc/rc.d/rc.local //配置文件#取得那个位置的ipif [ -a $configFile ]; //如果文件存在then oldip=`cat $co 阅读全文
posted @ 2019-08-08 19:39 countryboy666 阅读(191) 评论(0) 推荐(0) 编辑
摘要: void checkLogsDir(){ QDir dir("logs"); //创建一个dir对象 if (QDir().exists ("logs")) { QString dateDir=QDateTime::currentDateTime ().toString ("yyyyMMdd"); 阅读全文
posted @ 2019-08-07 11:25 countryboy666 阅读(118) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd#import matplotlib#unrate= pd.read_csv("unrate.csv")# 把时间格式 1948/1/10 转化为 1948-01-10#unrate["DATE"] = pd.to_datetime(unrate['DATE'] 阅读全文
posted @ 2019-07-21 23:49 countryboy666 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 属性动画元素 PropertyAnimation 提供动画属性被 NunberAnimation colorAnimation RotationAnimation Vector3dAnimation 继承 colorAimation on color {from : "red";to "yellow 阅读全文
posted @ 2019-07-18 07:11 countryboy666 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页