Discuss / Python / 格式化输出

格式化输出

Topic source

name1=input('pleas enter first num:') name2=input('please enter second num:') print(int(name1)) print(int(name2)) print('%s %s='%(name1,name2), int(name1) int(name2)) 主要用了格式化输出

注意乘法符号,评论后是看不到的


  • 1

Reply