两种类型比较 / 不限定作用域 限定作用域 作用域范围 枚举成员和枚举类型作用域相同 枚举成员的名字遵循常规作用域准则 自动转换 枚举类型或成员可以自动转换成整形 不进行隐式转换 默认类型 不存在 int 前置声明 需要指定成员类型才可以声明 可以用默认类型直接声明 一般来说大括号里的内容属于一个作 ...
分类:
编程语言 时间:
2020-11-11 16:36:27
阅读次数:
10
嵌套(Nesting)Less 提供了使用嵌套(nesting)代替层叠或与层叠结合使用的能力。假设我们有以下 CSS 代码: #header { color: black;}#header .navigation { font-size: 12px;}#header .logo { width: ...
分类:
其他好文 时间:
2020-10-27 11:17:08
阅读次数:
21
1010 一元多项式求导 (25分) 设计函数求一元多项式的导数。(注:x?n??(n为整数)的一阶导数为nx?n?1??。) 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过 1000 的整数)。数字间以空格分隔。 输出格式: 以与输入相同的格式输出导数多项式非零项的系数和指 ...
分类:
其他好文 时间:
2020-10-24 10:12:35
阅读次数:
19
import numpy as np import cv2 as cv # Create a black image img = np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with thickness of 5 px cv ...
分类:
编程语言 时间:
2020-10-20 16:26:11
阅读次数:
32
安装PILpip3installpillow使用PILfromPILimportImage,ImageFont,ImageDraw#image=Image.open(‘bg.jp‘)#读取图片image=Image.new(‘RGB‘,(250,250),(255,255,255))#设置画布大小及背景色iwidth,iheight=image.size#获取画布高宽font=ImageFont.
分类:
其他好文 时间:
2020-10-20 16:21:15
阅读次数:
24
测试分类: 一、按开发阶段划分 1.单元测试(Unit Testing) 2、集成测试(Integration Testing) 3、系统测试(System Testing) 4.验收测试(Acceptance Testing) 二、按是否查看代码划分 1.黑盒测试(Black-box Testin ...
分类:
其他好文 时间:
2020-10-18 10:02:04
阅读次数:
21
### 移动端 基于flex布局 的默认样式 rest css ; ```
*,::before,::after { padding: 0; margin: 0; outline: none; -webkit-tap-highlight-color: transparent; }
/* 所有元素的盒... ...
分类:
移动开发 时间:
2020-10-12 20:37:17
阅读次数:
32
import pyecharts.options as opts from pyecharts.charts import Bar3D Hair = ["Black","Brown","Red","Blond","Total"] Eye = ["Brown","Blue","Hazel","Gree ...
分类:
其他好文 时间:
2020-10-08 18:32:18
阅读次数:
14
样式: QpushButton QPushButton{ min-width:75px; max-width:75px; min-height:20px; border:1px solid black; border-radius:5px; } QPushButton:pressed{ backgr ...
分类:
其他好文 时间:
2020-09-24 00:09:50
阅读次数:
44
#绘制大耳朵兔 from turtle import * speed(10) #小兔的面部 color('pink') pensize(5) circle(radius=100)#脸 #眼睛 pencolor('black') #左眼 pu() goto(-45,92) pd() begin_fil ...
分类:
其他好文 时间:
2020-09-23 23:55:28
阅读次数:
39