fork download
  1. # your code goes here#1.1创建商品列表并分行输出
  2. product = [["冰箱", 2199], ["电饭煲", 399], ["洗衣液", 59], ["吹风机", 129]]
  3. for item in product:
  4. print("商品:{},价格:{}".format(item[0], item[1]))
Success #stdin #stdout 0.08s 7904KB
stdin
Standard input is empty
stdout
商品:冰箱,价格:2199
商品:电饭煲,价格:399
商品:洗衣液,价格:59
商品:吹风机,价格:129