Python数据类型之间的转换函数描述int(x [,base])将x转换为一个整数long(x [,base] )将x转换为一个长整数float(x)将x转换到一个浮点数complex(real [,imag])创建一个复数str(x)将对象 x 转换为字符串repr(x)将对象 x 转换为表达式...
分类:
编程语言 时间:
2014-07-03 09:48:00
阅读次数:
217
属性说明Overflow:ShrinkContent : 如果文本超出文本框宽度,会自动缩小文本size,使其显示完整ClampContent : 文本大小固定,超出文本框的部分不会显示,也不会自动换行ResizeFreely : 文本框宽高自适应文本的宽高Spacing:x:文本字符水平间隔y:....
分类:
其他好文 时间:
2014-07-02 19:55:20
阅读次数:
196
如果内容超过的区块的大小,内容就会溢出,可以使用下面的方法控制溢出overflow visible 不剪切内容也不添加滚动条 auto 在必需时对象内容才会被裁切或显示滚动条 hidden 不显示超过对象尺寸的内容(不显示滚动条,多余的内容就不要了) scro...
分类:
Web程序 时间:
2014-07-02 19:39:16
阅读次数:
202
float none 正常显示 left 左浮动 right 右浮动 clear none 允许两边浮动 left 不允许左边浮动 right 不允许右边浮动 both 不允许两边浮动 1 2 3 4 5 CSS 中浮动的...
分类:
Web程序 时间:
2014-07-02 19:36:01
阅读次数:
201
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=1600) cout<<0.00<<endl; else i....
分类:
其他好文 时间:
2014-07-02 18:23:21
阅读次数:
177
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=15) cout<<4*x/3<<endl; else c.....
分类:
其他好文 时间:
2014-07-02 18:10:27
阅读次数:
200
#include#includeusing namespace std;int main(){ int y,t; float s; cin>>y>>t; cout<<setiosflags(ios::fixed)<<setprecision(2); if(y<=4) if(t<=40) s=3...
分类:
其他好文 时间:
2014-07-02 17:48:01
阅读次数:
235
1 #include 2 using namespace std; 3 int main(){ 4 float o,h,l,c; 5 while(cin>>o>>h>>l>>c){ 6 if(co) 9 couto&&h>c)14 ...
分类:
其他好文 时间:
2014-07-02 17:29:47
阅读次数:
264
sprintf函数太大,在STM8上面根本不敢用,动不动就.text overflow。为了将采集的数值通过串口上传到计算机,只能自己写了一个浮点数转换成字符串的函数: #include #include static char table[]={'0', '1', '2', '3', '4', '...
分类:
其他好文 时间:
2014-07-02 14:54:49
阅读次数:
206
上次那个大数开方的高精度的题,UVa113 Power of Cryptography,直接两个double变量,然后pow(x, 1 / n)就A过去了。怎么感觉UVa上高精度的题测试数据不给力啊。。。话说回来,我写了100+行代码,WA了,后来考虑到要忽略前导0,又WA了,实在不知道哪出问题了。...
分类:
其他好文 时间:
2014-07-01 09:18:53
阅读次数:
198