vivienluo 发表于 2013-5-10 22:37:32

SKILL常见的输出格式规范


格式字符
Type(s) ofArgument
Prints

%d
fixnum
Integer in decimal radix

%o
fixnum
Integer in octal

%x
fixnum
Integer in hexadecimal

%f
fixnum
Floating-point number in the style [-]ddd.ddd

%e
fixnum
Floating-point number in the style[-]d.ddde[-]ddd

%g
fixnum
Floating-point number in style f ore, whichevergives full precision in minimum space

%s
string, symbol
Prints out a string (without quotes)or the printname of a symbol

%c
string, symbol
The first character

%n
fixnum, flonum
Number

%L
list
Default format for the data type

%P
list
Point

%B
list
Box




Point:为坐标,包括x和y。格式为list(x,y)

Box:为一方形区域坐标,包括左下和右上,格式为:list( lowerLeft upperRight )。比如:
bBox = list( 300:400 500:450 )

kate 发表于 2014-12-20 20:29:15

完全没看懂这是什么

dina 发表于 2016-4-19 17:12:18

好,谢谢罗老师

wcjcn 发表于 2017-6-7 20:25:50

谢谢老师,学习了
页: [1]
查看完整版本: SKILL常见的输出格式规范