当前位置: 首页 > news >正文

济南网站制作音乐类网站建设选题背景

济南网站制作,音乐类网站建设选题背景,wordpress 输出sql,物流三方网站怎么做监测数据采集物联网应用开发步骤(2) 系统整体结构搭建 新建项目 输入项目名称#xff1a;MonitorData 所谓兵马未动粮草先行#xff0c;按下图创建好对应的模块备用#xff1a; com.plugins 业务插件模块 com.zxy.adminlog 日志或文本文…监测数据采集物联网应用开发步骤(2) 系统整体结构搭建 新建项目 输入项目名称MonitorData 所谓兵马未动粮草先行按下图创建好对应的模块备用 com.plugins                     业务插件模块 com.zxy.adminlog            日志或文本文件读写模块 com.zxy.autoUpdate       程序版本自动更新模块 com.zxy.business             通用业务处理模块 com.zxy.common            通用函数模块 com.zxy.comport             串口通讯模块 com.zxy.db_Self               静态接口配置库(Sqlit3)模块 com.zxy.db1                     静态接口配置库(Sqlit3)模块 com.zxy.db2                     业务数据库(Sqlite3)模块 com.zxy.interfaceReflect         通用插件管理模块 com.zxy.main                   全局变量初始化模块 com.zxy.taskhandler        定时器任务模块 com.zxy.tcp                      tcp协议模块 编写主程序代码MonitorDataCmd.py打印启动时间sleep 5秒然后打印结束时间 #! python3 # -*- coding: utf-8 -Created on 2023年08月28日 author: zxyong 13738196011 import time from com.zxy.common.Com_Fun import Com_Fun#监测数据采集物联网应用-主程序 class MonitorDataCmd(object):def __init__(self, params):passif __name__ __main__:print(监测数据采集物联网应用软件开始:Com_Fun.GetTimeDef())time.sleep(5)print(监测数据采集物联网应用软件结束:Com_Fun.GetTimeDef())新建通用函数代码com.zxy.common.Com_Fun.py #! python3 # -*- coding: utf-8 -Created on 2023年08月28日 author: zxyong 13738196011 import datetime,uuid,time from datetime import timedelta#监测数据采集物联网应用--通用函数 class Com_Fun():def __init__(self):passstaticmethoddef NoNull(objTag):if objTag is None:return else:return str(objTag)staticmethoddef FloatNull(objTag):if objTag is None or objTag or objTag -:return 0else:return float(objTag)staticmethoddef ZeroNull(objTag):if objTag is None or objTag :return 0else:return int(objTag)staticmethoddef GetLong(inputTimeFormat,inputTime):if len(inputTime) 19:inputTime inputTime[0:19]time1datetime.datetime.strptime(inputTime.replace(T, ),inputTimeFormat)return time.mktime(time1.timetuple())#获得当前时间戳staticmethoddef getTimeLong():temT datetime.datetime.now()timeStamp time.mktime(temT.timetuple())return timeStamp#日期信息格式化timeFormat : %Y-%m-%d %H:%M:%Sstaticmethoddef GetTime(inputTimeFormat):return datetime.datetime.now().strftime(inputTimeFormat)#日期信息格式化秒数据10整数化staticmethoddef GetTimeNum(inputTime):temTime datetime.datetime.strptime(inputTime.replace(T, ),%Y-%m-%d %H:%M:%S)temSB temTime.strftime(%Y-%m-%d %H:%M)temSE temTime.strftime(%S)temSec int(int(temSE) / 10)return temSB:str(temSec)0#日期信息格式化timeFormat : %Y-%m-%d %H:%M:%Sstaticmethoddef GetTimeDef():return str(time.strftime(%Y-%m-%d %H:%M:%S, time.localtime()))#日期信息格式化timeFormat : %Y-%m-%d %H:%M:%S 字符串staticmethoddef GetTimeInput(inputTimeFormat,inputTime):if inputTime is None or inputTime :return 1900-01-01 00:00:00time1datetime.datetime.strptime(inputTime.replace(T, ),inputTimeFormat)return time1#日期信息格式化timeFormat : %Y-%m-%d %H:%M:%S 字符串staticmethoddef GetStrTimeInput(inputTimeFormat,inputTime):if inputTime is None or inputTime :return 1900-01-01 00:00:00time1datetime.datetime.strptime(inputTime.replace(T, ),inputTimeFormat)return str(time1)#返回time格式staticmethoddef GetToTimeInput(inputTimeFormat,inputTime):if inputTime is None or inputTime :return 1900-01-01 00:00:00elif len(inputTime) 19:return datetime.datetime.strptime(inputTime.replace(T, ),inputTimeFormat)else:return datetime.datetime.strptime(inputTime[0:19],inputTimeFormat)#日期信息格式化timeFormat : %Y-%m-%d %H:%M:%S,返回字符串格式staticmethoddef GetDateInput(inputDateFormat,inputTimeFormat,inputTime):if len(inputTime) 10 or inputTime is None or inputTime :return 1900-01-01time1datetime.datetime.strptime(inputTime.replace(T, ),inputTimeFormat)return time1.strftime(inputDateFormat)#(days0, seconds0, microseconds0, milliseconds0, minutes0, hours0, weeks0)staticmethoddef DateTimeAdd(inputDate,inputDateType,inputNum):#%d %H:%M:%Sdelta Noneif inputDateType d:delta timedelta(daysinputNum)elif inputDateType W:delta timedelta(weeksinputNum)elif inputDateType H:delta timedelta(hoursinputNum)elif inputDateType M:delta timedelta(minutesinputNum)elif inputDateType S:delta timedelta(secondsinputNum)return inputDate deltastaticmethoddef SetHashTable(inputHt,inputStrKey,inputStrValue):if inputHt is None:inputHt {}inputHt[inputStrKey] inputStrValuestaticmethoddef GetHashTable(inputHt,inputStrKey):if inputHt is None or inputStrKey not in list(inputHt.keys()):return else:return inputHt[inputStrKey]staticmethoddef GetHashTableNone(inputHt,inputStrKey):if inputHt is None or inputStrKey not in list(inputHt.keys()):return Noneelse:return inputHt[inputStrKey]staticmethoddef RemoveHashTable(inputHt,inputStrKey):if inputHt.get(inputStrKey) is not None:inputHt.pop(inputStrKey)staticmethoddef Str_To_Int(inputStr):if inputStr is not None and inputStr ! :return int(inputStr)else:return 0staticmethoddef Get_New_GUID():return str(uuid.uuid1()).upper() 运行程序选择主程序右键 程序执行结果 恭喜你!系统整体结构搭建完成。 监测数据采集物联网应用开发步骤(4)
http://www.laogonggong.com/news/119277.html

相关文章:

  • 海外网站免费建设wordpress幻灯片名
  • 做图模板下载网站dede的网站地图要怎么做
  • 学网站设计wordpress安装空白页
  • 做网站 用什么建站软件好电子商务网站建设阶段
  • 网站 设计 案例 简单建立容错纠错机制
  • dede免费模板教育网站王也道长高清头像高马尾
  • 营销型网站规划100件创意产品
  • html改造wordpress佛山网站优化
  • 泉州网站建设方案策划用vs2010做网站并连数据库
  • 网站备案 谁接入谁负责福州网站建设金森
  • 云南热搜科技做网站不给源码wordpress上传网站
  • 黄岛因特网站建设公司杭州做网站的网络公司有哪些
  • 微网站建设申请泉州设计网站
  • 江苏省住房和城乡建设厅网站西工网站建设设计
  • 有关网站建设的知识施工企业环境管理体系文件
  • 做网站需要的素材照片湘潭网站建设 问下磐石网络
  • 网站视频下载软件做企业网站用什么字体
  • 武夷山网站设计网站的开发语言有哪些
  • 官网做有下拉列表的网站的图片自己怎么样做网站
  • 北京网站建设小公司有哪些南京鼓楼做网站的公司
  • 网站托管服务商wordpress获取分类导航
  • 长沙做网站一般多少钱合适思明区建设局官网站
  • 广西新闻最新消息今天单页网站模板做seo
  • php开发的大型金融网站有哪些怎么做门户网站
  • 花生壳做网站速度太原app定制
  • 做网站硬件黑河做网站哪家好
  • 网站防盗链设置外网访问wordpress全站路径设置
  • 西宁做网站的网站怎么更换服务器
  • 怎么创建万维网网站郑州一网网站建设
  • 网站域名如何起server2008网站建设