#--coding:utf-8--
#test %s and %r and %d
x="I want to test this"
y=3
print "this is the test 1:%s"%x
print "this is the test 2:%r"%x
print "this id the test 3:%d"%y
%r是打印内存格式,%r是使用repr,而不是str
%s是字符串
%d是数字
#--coding:utf-8--
#test %s and %r and %d
x="I want to test this"
y=3
print "this is the test 1:%s"%x
print "this is the test 2:%r"%x
print "this id the test 3:%d"%y
%r是打印内存格式,%r是使用repr,而不是str
%s是字符串
%d是数字