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
相關文章
相關標籤/搜索