首页 > 其他分享 >zuoye

zuoye

时间:2022-09-23 20:56:09浏览次数:31  
标签:str2 product str3 zuoye str1 Enter input

str1=input("Enter product code: ")
str2=input("Enter product name: ")
str3=input("Enter product size: ")
num=float(input("Enter product price: "))


print(str1 + ": " + str2 + ", " +str3)
print(str2 + ", " + str3 +", "+"$"+"{:.2f}".format(num))
print(str1 + ": " +'"'+ str2 +'"' )

 

"{:.2f}".format

标签:str2,product,str3,zuoye,str1,Enter,input
From: https://www.cnblogs.com/jqy0704/p/16724202.html

相关文章