上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页
摘要: VTP 模式如果为服务器模式,可以在交换机上增加,删除和修改 VLAN 信息;如果 VTP 模式为客户模式,不 能再交换机上增加,删除和修改 VLAN 信息,它的 VLAN 信息是从 VTP 模式的交换机上学习而来;如果 VTP 模式 为透明模式,交换机可以独立维持自身的 VLAN 信息库。默认 V 阅读全文
posted @ 2020-06-14 21:40 topass123 阅读(594) 评论(0) 推荐(0)
摘要: 数据存储: import mysql.connector from sqlalchemy import create_engine # 创建引擎 from sqlalchemy.orm import sessionmaker # 创建会话 class ORM: # 会话方法 @classmethod 阅读全文
posted @ 2020-06-14 16:30 topass123 阅读(291) 评论(0) 推荐(0)
摘要: 因为网络与磁盘的存储是一致的,故而。可以使用双饼图实现: 定义双饼图: #-*- coding: utf-8 -*- import datetime from pyecharts import Liquid,Gauge,Pie,Line class Chart(object): #定义双饼图 def 阅读全文
posted @ 2020-06-14 14:31 topass123 阅读(209) 评论(0) 推荐(0)
摘要: 定义仪表盘: def gauge_html(self, chart_id, title, val): gauge = Gauge( "{}-{}".format(self.dt, title), title_pos="center", width="100%", title_text_size=14 阅读全文
posted @ 2020-06-14 09:28 topass123 阅读(288) 评论(0) 推荐(0)
摘要: 添加水球,下载插件添加到静态文件中。 在html文件处理echart的问题。导入路径即可 <script src="{{ static_url('echarts-liquidfill/echarts-liquidfill.min.js') }}"></script> 修改index.html <di 阅读全文
posted @ 2020-06-14 00:06 topass123 阅读(297) 评论(0) 推荐(0)
摘要: 创建视图连接池 #-*- coding: utf-8 -*-#app/views/views_real_time.py from sockjs.tornado import SockJSConnection class RealTimeHandler(SockJSConnection): #建立连接 阅读全文
posted @ 2020-06-13 23:44 topass123 阅读(290) 评论(0) 推荐(0)
摘要: 字段分析: monitor.py #-*- coding: utf-8 -*- import psutil import time,datetime from pprint import pprint #定义一个专门用于获取系统信息的类 class Moniter(object): #转换方法 de 阅读全文
posted @ 2020-06-13 23:42 topass123 阅读(240) 评论(0) 推荐(0)
摘要: #-*- coding: utf-8 -*- from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.dialects.mysql import BIGINT,DECIMAL,DATE,TIME,DATETIME 阅读全文
posted @ 2020-06-13 23:41 topass123 阅读(260) 评论(0) 推荐(0)
摘要: 1)自行安装Python。使用3.5以上即可。另外自行安装pycharm。 2)安装虚拟环境。 mkvirtualenv my_env 3)打开pycharm,创建项目。在项目的环境中选择my_env 4)在根目录创建requirements.txt 输入如下的内容:然后在虚拟环境下使用pip in 阅读全文
posted @ 2020-06-12 10:56 topass123 阅读(336) 评论(0) 推荐(0)
摘要: 739. 每日温度 根据每日 气温 列表,请重新生成一个列表,对应位置的输出是需要再等待多久温度才会升高超过该日的天数。如果之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 阅读全文
posted @ 2020-06-11 16:00 topass123 阅读(125) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页