首先选中波形,然后点击file datasets。 选中sim文件,然后点击save as。 对所保存的文件命名。完成之后点击done即可。 在完成上述的加载波形之后,会有多个.wlf文件,如上图所示,若要产生对比波形,需要将某个.Wlf中的信号重新加载过来即可,如下图操作。 选中ex1.wlf文件 ...
分类:
其他好文 时间:
2016-06-29 13:10:17
阅读次数:
152
模拟创建环境需要用到\转义[root@Qinglin-Test1~]#foriin{1..10};dotouchstudent\_$i\_finshi.jpg;done
[root@Qinglin-Test1~]#ls
student_10_finshi.jpgstudent_2_finshi.jpgstudent_4_finshi.jpgstudent_6_finshi.jpgstudent_8_finshi.jpg
student_1_finshi.jpgstudent_3_fin..
分类:
系统相关 时间:
2016-06-27 00:06:31
阅读次数:
236
一、基本命令 1.windows 里面的命令tree /F >1.txt /将目录树写入1.txt中 D: //进入d盘 2. for f in `seq 1000`;do touch $f.txt;done //从1到1000个txt创建起来 cat >>/data/kaka.txt<<EOF g ...
分类:
其他好文 时间:
2016-06-23 00:57:41
阅读次数:
170
一、计算1+2+...+100的值采用一般方法:#!/bin/bash
sum=0
res=""
num=1
for((;num<=100;num++))
do
letsum+=num
[$num-eq100]&&{
res=${res}${num}
break
}
res=${res}${num}‘+‘
done
echo${res}=${sum}结果如下:使用递归方法:1#!/bin/bash
2
3readnum
4
5sum..
分类:
系统相关 时间:
2016-06-22 15:57:55
阅读次数:
290
求出数字1~100的累加和:要求数字的累加,可以使用循环来完成,如下代码:#!/bin/bash
sum=0
str=""
#foriin{1..100}
for((i=1;i<=100;++i))
do
str+="${i}+"
letsum+=i
done
echo"${str%+}=${sum}"运行脚本:另外一种可以用递归的方式:#!/bin/bash
readnum
sum=0
str="..
分类:
系统相关 时间:
2016-06-21 22:47:47
阅读次数:
409
1...100的求和非递归:
#!/bin/bash
readnum
count=1
sum=0
val=""
ret=""
while[$count-le$num]
do
if[$count-eq$num];then
val=$count
else
val=${count}‘+‘
fi
letsum+=count
letcount++
ret=${ret}${val}
done
echo${ret}‘=‘$sum
递归:
#!/bin/bash
readnum
functionadd(..
分类:
系统相关 时间:
2016-06-20 00:58:49
阅读次数:
496
题目1:1-100求和非递归版本:#!/bin/bash
sum=0
while[$val-le100]
do
letsum+=val
letval++
done
echo$sum
sum=0
foriin{1..100}
do
if[$i==1];then
bar=${bar}${i}
else
bar=${bar}+${i}
fi
letsum+=i
done
echo$bar=$sum
sum=0
for((i=1;i<=100;i++))
do
..
分类:
系统相关 时间:
2016-06-20 00:54:35
阅读次数:
207
创建测试文件[root@localhostmnt]#ls[root@localhostmnt]#foriin{1..7};dotouchwsyht$i.txt;done[root@localhostmnt]#lltotal0-rw-r--r--.1rootroot0Jun1815:29wsyht1.txt-rw-r--r--.1rootroot0Jun1815:29wsyht2.txt-rw-r--r--.1rootroot0Jun1815:29wsyht3.txt-rw-r--r--.1root..
分类:
其他好文 时间:
2016-06-18 17:09:46
阅读次数:
165
>>>Updatingrepositoriesmetadata...UpdatingpfSense-corerepositorycatalogue...pfSense-corerepositoryisup-to-date.UpdatingpfSenserepositorycatalogue...pfSenserepositoryisup-to-date.Allrepositoriesareup-to-date.>>>UpgradingpfSense-repo...done...
分类:
其他好文 时间:
2016-06-18 01:39:05
阅读次数:
769
输入格式:LastName,Firstname如果输入的格式:FirstnameLastName(没有逗号)互换位置,提示错误,记录错误数输入完毕后,排序输出这里以q退出,done输入完毕all=[]
count=0
error=1
whileTrue:
name=input("Pleaseentername%d:"%count)
iflen(name.split(‘,‘))==2:
all.append(..
分类:
其他好文 时间:
2016-06-18 01:30:31
阅读次数:
529