python代码

Posted jkn1234

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python代码相关的知识,希望对你有一定的参考价值。

  • 格式输出,转化为字符串由format自动完成
age    =    20 
name = Swaroop print({0} was {1} years old when he wrote this book.format(name, age))

 


以上是关于python代码的主要内容,如果未能解决你的问题,请参考以下文章