Use variables to store the following information and print out

Brand (variable name brand): huawei
Weight (variable name weight): 125
Battery type (variable name power_Type): Built-in lithium battery
Price (variable name price): 2250

a=str("手机信息:")
brand=str("品牌:huawei")
weight=str("重量:125")
power_Type=str("电池类型:内置锂电池")
price=str("价格:2550")
print("%s\n%s\n%s\n%s\n%s"%(a,brand,weight,power_Type,price))
Published 5 original articles · Likes0 · Visits 6

Guess you like

Origin blog.csdn.net/weixin_46520272/article/details/105445016