今天看了H5的canvas,练习使用下。待完善。。。 class Clock { constructor(canvas) { this.canvas = canvas; } draw() { let ctx = this.canvas.getContext("2d"); ctx.setDefault ...
分类:
其他好文 时间:
2019-12-09 01:09:25
阅读次数:
81
No changes detected 可能的原因: 1.settings中Django数据库配置出现问题 2.migration中缺少__init__.py文件 3.应用没有注册 在原有的数据库中,重新执行迁移,生成原本该数据库中存在过的表,一定要清除两个地方 1.migration中的__pyc ...
分类:
其他好文 时间:
2019-12-08 17:59:57
阅读次数:
116
标准库 1、time和datetime import timeprint(time.time()) #时间戳# print(time.clock()) #返回处理器时间,3.3开始已废弃,改成了time.process_time()print(time.process_time()) #测量运算器处 ...
分类:
编程语言 时间:
2019-12-06 19:21:37
阅读次数:
101
import pandas as pd import numpy as np import seaborn as sns import matplotlib import matplotlib.pyplot as plt from scipy.stats import skew from scipy ...
分类:
编程语言 时间:
2019-12-05 00:59:40
阅读次数:
528
componentDidMount声明周期函数 表示组件渲染完成后 componentWillUnmount声明周期函数 组件将要卸载 通常用于(为了防止内存泄漏 清除定时器) 11==>创建组件 Clock.js 组件名大写 12==》报错 Attempted import error: 'Clo ...
分类:
其他好文 时间:
2019-12-01 19:05:50
阅读次数:
146
如果数据需要修改,并且同时页面响应变化,我们需要放在 state 中,并且使用 setState 来修改数据,此处我们以一个钟表为例。 1.在 components 文件夹中,新建 Clock.js ,具体代码如下: 2.然后在 src index.js 导入组件,再使用组件,执行代码在浏览器查看结 ...
分类:
其他好文 时间:
2019-12-01 10:10:40
阅读次数:
94
时间模块#user:Administrator#date:2019/11/130013importtime#print(help(time))#print(time.time())#结果:1573655126.5573525从1970年到现在的时间#time.sleep(3)#print(time.clock())#计算CPU执行时间#print(time.gmtime())#世界标准时间time
分类:
其他好文 时间:
2019-11-28 15:10:12
阅读次数:
73
transform transform : none | <transform-function> [ <transform-function> ]* 也就是: transform: rotate | scale | skew | translate |matrix;注意:transform(变形) ...
分类:
其他好文 时间:
2019-11-27 11:54:49
阅读次数:
59
背景 上一章介绍了打卡工具的ui部分的代码,今天来接着介绍数据库部分的。其实这个工具涉及到数据库的内容也很简单,只有查询表,创建表,初始化表,读取数据表,写入数据表,删除表这些操作。 技术概览 1. sqlalchemy 2. pymysql 这里解释下为什么要用到两个数据库的模块,因为我读取数据表 ...
分类:
数据库 时间:
2019-11-27 00:46:49
阅读次数:
98
1、源语 FDRE FDRE代表一个单D型触发器,含的有五个信号分别为: 数据(data,D)、时钟使能(Clock enable,CE)、时钟(Clock)、同步复位(synchronous reset,R)、数据输出(dataout,Q)。当输入的同步复位信号为高时,否决(override)所有 ...
分类:
其他好文 时间:
2019-11-22 20:57:34
阅读次数:
636