Verilog代码可移植性设计1.参数定义localparam,实例代码如下:module
tm1(clk,rst_n,pout);input clk;input rst_n;output[M:0] pout;localparam N =
4;localparam M = N-1;reg[M:0] ...
分类:
其他好文 时间:
2014-05-09 08:52:31
阅读次数:
391
格式化输出print(format(value,format_spec)),其中3为打印位数,2f为精度print(format(12.2356,‘3.2f‘))
print(format(0.23456,‘.1%‘))
D:\Python27\python.exeF:/Self-Study/python-study/input_output.py
12.24
23.5%
分类:
编程语言 时间:
2014-05-09 07:14:02
阅读次数:
268
classpath资源路径加载:
velocity.properties文件配置
file.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
input.encoding = UTF-8
output.encoding = UTF-8Servlet代...
分类:
移动开发 时间:
2014-05-09 06:14:52
阅读次数:
387
line-height这个属性是被ie6所支持的。当是当一个父级元素内的子元素,包含了文字,且文字和img,input,label,span这些内联元素连接在一起的时候,你对父级元素设置line-height是没有任何效果的。很多情况下,我们希望文字和表单元素(比如input输入框)垂直居中,在设置...
分类:
其他好文 时间:
2014-05-09 05:05:16
阅读次数:
238
JS
代码varvRbtid=document.getElementById("rbtid");//得到所有radiovarvRbtidList=vRbtid.getElementsByTagName("INPUT");for(vari=0;i<vRbtidList.length;i++){if(v...
分类:
Web程序 时间:
2014-05-09 04:07:26
阅读次数:
333
根据选择的Checkbox动态在表格中列出选择的值
p,div,body,td,input,checkbox,button{font-size:9pt;}
function vbtrim(str)
vbtrim=trim(str)
end function
function vbisnumeric(iVar)
vbisnumeric=not isnumeric(...
分类:
其他好文 时间:
2014-05-09 02:14:35
阅读次数:
319
data segment
string1 db 'Please input a number:',0dh,0ah,'$'
string2 db 0dh,0ah,'It is a number!',0dh,0ah,'$'
string3 db 0dh,0ah,'It is not a number!',0dh,0ah,'$'
data ends
code segment
...
分类:
其他好文 时间:
2014-05-09 01:34:35
阅读次数:
350
大家经常探讨使用asp,而不使用其他组建能否实现文件的上传,从而开发出支持邮件附件的邮件系统,答案是可以的。请看:
以下是发送邮件的页面,邮件的帐号是员工号,假设是5位的数字,sendmail.asp当然是在合法登陆后才能够看到的
input { font-size: 9pt; color: #0011dd; background-color: #e9e9...
分类:
Web程序 时间:
2014-05-09 01:30:55
阅读次数:
327
${name}
<input type="checkbox" name="pri...
分类:
其他好文 时间:
2014-05-09 01:29:57
阅读次数:
273
data segment
string1 db 'Please input a number:',0dh,0ah,'$'
string2 db 0dh,0ah,'It is a number!',0dh,0ah,'$'
string3 db 0dh,0ah,'It is not a number!',0dh,0ah,'$'
data ends
code segment
...
分类:
其他好文 时间:
2014-05-09 01:18:43
阅读次数:
316