源代码
#Use "o" to convert the number into octal format: txt = "The octal version of {0} is {0:o}" print(txt.format(10))
运行结果