//file1:
#!/usr/bin/tcl
puts [format "%#x" 20];
//输出结果:
0x14
//file2:
#!/usr/bin/tcl
puts [format "%x" 20];
//输出结果:
14
tcl的一个格式化操作 [format "%#x" val]
最新推荐文章于 2024-11-28 17:43:54 发布
//file1:
#!/usr/bin/tcl
puts [format "%#x" 20];
//输出结果:
0x14
//file2:
#!/usr/bin/tcl
puts [format "%x" 20];
//输出结果:
14