码迷,mamicode.com
首页 > 编程语言 > 详细

python超市购物清单

时间:2017-06-24 17:12:54      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:--   垃圾   class   logs   utf-8   style   bsp   购物   div   

#!/usr/bin/env python
#-*-coding:utf-8-*-
pro_name_1 = 特仑苏
pro_prince_1 = 48
pro_total_1 = pro_price_1*1
pro_name_2 =卡通垃圾面
pro_prince_2 =2.5
pro_total_2 = pro_price_2*1
pro_name_3 = 面巾纸
pro_price_3 = 3.3
pro_count = 4
pro_total_3 = pro_price_3*pro_count_3
pro_name_4 = 燕麦片
pro_price_4 = 23
pro_total_4 = pro_price_4*1
pro_name_5 = dove洗面奶
pro_price_5 = 16.8
pro_count_5 = 4
pro_total_5 = pro_price_5*pro_count_5
print------------购物清单-------------;print 商品名称+ +数量+ +单价+ +总计+;print pro_name_1+ +1+ str(pro_price_1)+ +str(pro_total_1);print pro_name_2+ +1+ str(pro_price_2)+ +str(pro_total_2);print pro_name_3+ +1+ str(pro_price_3)+ +str(pro_total_3);print pro_name_4+ +1+ str(pro_price_4)+ +str(pro_total_4);print pro_name_5+ +1+ str(pro_price_5)+ +str(pro_total_5);\

 

python超市购物清单

标签:--   垃圾   class   logs   utf-8   style   bsp   购物   div   

原文地址:http://www.cnblogs.com/lijingye/p/7073562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!