label

Web端实现视频通话

我们两清 提交于 2020-01-31 05:30:06
博主在完成自己的毕业设计时,需要完成一个音视频通话功能,于是采用了腾讯云的视频接口,将其实现出来,,以下是项目截图: 以下是主要代码: <!doctype html> <html lang= "en" > <head> <!-- Required meta tags --> <meta charset= "utf-8" > <meta name= "viewport" content= "width=device-width, initial-scale=1, shrink-to-fit=no" > <!-- Material Design for Bootstrap fonts and icons --> <!-- <link rel= "stylesheet" href= "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" > --> <!-- Material Design for Bootstrap CSS --> <link rel= "stylesheet" href= "./css/bootstrap-material-design.min.css" > <link rel= "stylesheet" href= "./css/common.css" >

【前端学习笔记day46】6.9. HTML5 新增表单控件

淺唱寂寞╮ 提交于 2020-01-31 04:30:04
文章目录 6.9. HTML5 新增表单控件 HTML5 新增表单控件 6.9. HTML5 新增表单控件 HTML5 新增表单控件 新增类型:网址 邮箱 日期 时间 星期 数量 范围 电话 颜色 搜索 <label>网址:</label><input type="url" name="" required><br><br> <label>邮箱:</label><input type="email" name="" required><br><br> <label>日期:</label><input type="date" name=""><br><br> <label>时间:</label><input type="time" name=""><br><br> <label>星期:</label><input type="week" name=""><br><br> <label>数量:</label><input type="number" name=""> <br><br> <label>范围:</label><input type="range" name=""><br><br> <label>电话:</label><input type="tel" name=""><br><br> <label>颜色:</label><input type="color" name=""

paddle实现AlexNet

ⅰ亾dé卋堺 提交于 2020-01-31 04:04:00
AlexNet结构 及 pytorch、tensorflow、keras、paddle实现ImageNet识别 环境 python3.6, paddlepaddle-gpu 1.6.3.post107 代码 # -*- coding: utf-8 -*- # @Time : 2020/1/21 11:18 # @Author : Zhao HL # @File : alexnet-paddle.py import os, sys from PIL import Image import numpy as np import pandas as pd import paddle from paddle import fluid from paddle.fluid.layers import data, conv2d, pool2d, flatten, fc, cross_entropy, accuracy, mean from my_utils import process_show, draw_loss_acc # region parameters # region paths Data_path = "./data/my_imagenet" Data_csv_path = "./data/my_imagenet.csv" Model_path = 'model/' Model

如何编写轻量级 CSS 框架

元气小坏坏 提交于 2020-01-31 02:31:10
Github: https://github.com/nzbin/snack Docs: https://nzbin.github.io/snack 前言 这篇文章我已经酝酿了半年之久,或者说拖沓了这么久吧。想说的东西很多,却又无从说起。如今轻量级框架如雨后春笋,层出不穷。我想每个人都应该归纳总结工作中的常见需求,编写一套适合自己的 CSS 框架。在之前的文章中,我提到了面向对象的 CSS(比如 BEM、OOCSS、SMACSS ,详见 http://vanseodesign.com/css/dry-principles/ )。这是一种思想,并不涉及具体的 CSS 问题,主要是类命名的策略!现在仍然有很多人对于前端框架的认识还停留在表面,认为 Bootstrap 是后端人员专用,前端没必要等等。我不知道这种说法从何而来,我最开始也不喜欢使用框架,或许和很多人的想法一样,畏惧新知识、害怕难以驾驭、遇到问题的时候无法解决等等。最关键的一点是很多人认为框架的样式是固定的,修改起来太麻烦,还不如自己根据设计图写起来方便。 为什么使用框架 为什么使用框架?答案显而易见,效率。除此之外,使用框架或者研究框架的意义还有很多,比如面向对象思想的具体实现。在上一家公司工作的时候,开始的几个项目我也是用最原始的方法书写 CSS 。项目之中最让我头疼的就是类的命名。我想大多数人都是根据功能去命名

Python 9数据绘图

為{幸葍}努か 提交于 2020-01-31 00:16:36
老师说我展示数据的前几个图画错了,忘了改了 import scipy . io as sio import matplotlib . pyplot as plt import numpy as np from numpy . random import randn from pylab import * raw_K = sio . loadmat ( 'Subject1K.mat' ) raw_V = sio . loadmat ( 'Subject1V.mat' ) k = raw_K [ 'Subject1K' ] v = raw_V [ 'Subject1V' ] print ( k [ 0 ] ) fig = plt . figure ( ) ax1 = fig . add_subplot ( 4 , 3 , 1 ) ax2 = fig . add_subplot ( 4 , 3 , 2 ) ax3 = fig . add_subplot ( 4 , 3 , 3 ) ax4 = fig . add_subplot ( 4 , 3 , 4 ) ax5 = fig . add_subplot ( 4 , 3 , 5 ) ax6 = fig . add_subplot ( 4 , 3 , 6 ) ax7 = fig . add_subplot ( 4 , 3 , 7 ) ax8

【Python】画个堆积柱状图(三类数据的)

放肆的年华 提交于 2020-01-30 19:19:45
# 堆积图 import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams["font.sans-serif"] = ["SimHei"] x = [1, 2, 3, 4, 5, 6 ,7,8,9,10,11,12,13,14] y = [0.4101,0.4535,0.4881,0.4604,0.4539,0.4054,0.4359,0.4531,0.4471,0.4630,0.4542,0.4235,0.4301,0.4523] y1 = [0.2874,0.2647,0.2335,0.2579,0.2553,0.2837,0.2336,0.2050,0.2243,0.2233,0.2194,0.2341,0.2266,0.1904] y2 = [0.3023,0.2817,0.2782,0.2816,0.2907,0.3108,0.3304,0.3417,0.3284,0.3135,0.3262,0.3422,0.3432,0.3571] plt.bar(x, y, align="center", color="orange", tick_label=["李世民", "李治", "武曌", "李隆基", "李亨","李豫","李适","李纯","李昂","李炎","李忱","李漼","李儇","李柷"

PyQt5快速上手基础篇4-将lineEdit输入框数据同步显示再label和LCD屏上面

风流意气都作罢 提交于 2020-01-30 16:00:49
前言 本节我们将介绍lineEdit的使用方法,同时将输入框输入的数据同步显示再label和LCD屏幕上面。 一、基础知识 1. lineEdit简介 lineEdit是文本框,可以输入和显示文本信息,同时可以设置显示格式和文本框属性,其主要函数说明如下 常用信号如下 二、实例 1. QT Designer设计UI 打开designer.exe,使用默认的Main Window创建,直接点击Create按钮即可 设计UI图如下,并保存为edit.ui 2 将edit.ui转换为ui_edit.py 进入ui_edit.py目录,输入pyuic5 -o ui_edit.py edit.ui 3 编写python程序 # encoding=utf-8 import sys import PyQt5.QtWidgets as qw import ui_edit class myForm(qw.QWidget, ui_edit.Ui_Form): def __init__(self): super().__init__() self.setupUi(self) # self.lcdNumber.setDecMode() #设置显示模式 self.lcdNumber.setSegmentStyle(self.lcdNumber.Flat) self.lcdNumber

Can i read value from QLabel

混江龙づ霸主 提交于 2020-01-30 11:22:48
问题 I now how to set value(number) but can i read that label in some variable. if can't read, in which similar widgets can i put value and read it. Any help would be halpful or someone has an other idea. Maybe like LCD number, spin box 回答1: Like this? QString text = someLabel->text(); 回答2: Here is the documentation. QLabel.text() EDIT: QString text = theLabel.text(); //or with pointer QString text = theLabel->text(); 回答3: have you tried : QString s = YourQLabel->text(); This should work, I guess.

Displaying Label on Tkinter for a fixed amount of time

隐身守侯 提交于 2020-01-30 08:59:11
问题 I'm creating a GUI application in Python 2.7 using Tkinter. I have this piece of code: vis=Label(pur,text='Purchase Added successfully',font=(8)) vis.place(x=150,y=460) I wanna know if there's any way to display the Label 'Purchase Added Successfully' for a limited amount of time(~3 seconds) and then it would disappear. This is because I'm interested in adding a new 'purchase' after the current one, and don't want the success messages to overlap. 回答1: There are many ways depending on the

自己无聊封装一个 LTView

回眸只為那壹抹淺笑 提交于 2020-01-29 14:30:47
// // LTView.m // UI_Lesson_LTView // // Created by 李洪鹏 on 15/7/2. // Copyright (c) 2015年 李洪鹏. All rights reserved. // #import "LTView.h" @interface LTView() <UITextFieldDelegate> @property (nonatomic, retain) UILabel *label; @property (nonatomic, retain) UITextField *textField; @end @implementation LTView //通过属性设置子控件的delegate - (void)setDelegate:(id<UITextFieldDelegate>)delegate { self.textField.delegate = delegate; } - (instancetype)initWithFrame:(CGRect)frame label:(NSString *)label textFieldPlaceHolder:(NSString *)text { self = [super initWithFrame:frame]; if (self) { //创建 label self.label