Python核心组件 1、Button 按钮组件:一个简单的按钮,用来执行一个命令或别的操作。 参数解析: text:指定按钮上显示的文本; anchor: 指定按钮上文本的位置(N, NE, E, SE, S, SW, W, NW, or CENTER); borderwidth(bd): 指定按 ...
分类:
编程语言 时间:
2019-03-29 19:18:58
阅读次数:
146
private void Time(int i) { Stopwatch sw = new Stopwatch(); sw.Start(); Thread.Sleep(i); sw.Stop(); Console.WriteLine(sw.ElapsedTicks / (decimal)Stopwa... ...
vlan的配置思路:1.创建vlansw(config)#vlan12sw(config-vlan)#nameCAIWU2.配置端口模式sw(config)#interfacefas0/1sw(config-if)#noshutdownsw(config-if)#switchportaccessvlan123.配置端口属于的vlansw(config)#interfacefas0/1|fas0/2
分类:
其他好文 时间:
2019-03-17 21:28:44
阅读次数:
150
1. vim /boot/grub2/grub.cfg 2. 将 linux16 /vmlinuz-3.10.0-229.11.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/sw ...
分类:
其他好文 时间:
2019-02-27 01:22:59
阅读次数:
287
/* 引用作为变量的别名,在一些场合可以代替指针 */ #include using namespace std; void swap(int& a, int& b) { int t = a; a = b; b = t; } int main() { int a = 1; int b = 2; sw... ...
分类:
其他好文 时间:
2019-02-22 22:56:28
阅读次数:
180
实验要求:实现不同vlan间PC不可互访,而不同vlan的PC均可访问服务器的特殊效果;实验拓扑图:实验步骤:1、在交换机中创建相关vlan;--SW1vlanbatch51050;--SW2vlanbatch51050;2、修改端口模式与PVID;[SW]interfaceGigabitEthernet0/0/1;[SW-GigabitEthernet0/0/1]porthybridpvidvl
分类:
其他好文 时间:
2019-02-18 14:36:49
阅读次数:
191
FileInfo myFile = new FileInfo(@"C:\temp\zxkc.txt"); StreamWriter sw = myFile.CreateText(); string[] strs = { zxck1.Text, zxck1.Text, "900" }; foreach... ...
分类:
其他好文 时间:
2019-02-13 09:22:58
阅读次数:
205
js操作serviceWorker缓存静态文件 serviceWorker的作用就是用来做离线应用的,在手机端程序中用的较多 1. 先看下效果 2. index.html 3. sw.js ...
分类:
Web程序 时间:
2019-02-05 19:38:32
阅读次数:
219
#include "pch.h" #include using namespace std; const float PI = 3.1415926; int main() { int iType; float readius, a, b; while (true){ cout > iType; sw... ...
分类:
编程语言 时间:
2019-01-27 14:39:22
阅读次数:
205
与串联的if语句类似,switch语句提供了一个多分支条件执行的方法。不过在这里用一个专有名词来代表分支——case。每一个case可以携带一个表达式或一个类型说明符。前者又可被简称为case表达式。因此,Go语言的switch语句又分为表达式switch语句和类型switch语句。 先说表达式sw ...
分类:
编程语言 时间:
2019-01-26 18:00:46
阅读次数:
216