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