Python3中的格式化输入输出之print函数

Python2版本和Python3版本是有区别的????????  Note : "()"这个非常重要 1、Python2版 num = 7.9 ptint "The number is %f" % num  The number is 7.900000 2、Python3版 ####字符串 %s print("My name is %s" % ("Beechan")) #Output: My n
相关文章
相关标签/搜索