首页 > 其他 > 详细

day1

时间:2017-09-16 11:35:48      阅读:215      评论:0      收藏:0      [点我收藏+]

product_list = [
    (,),
    (,),
    (,)
]
shopping_list =[]
salary = ()

salary.isdigit():
    salary = (salary)
    :
        index,item (product_list):
            (index,item)
        user_choice = ()
        user_choice.isdigit():
            user_choice = (user_choice)
            user_choice < (product_list) user_choice >=:
                p_item = product_list[user_choice]
                p_item[] <= salary:
                    shopping_list.append(p_item)
                    salary -= p_item[]
                    (% p_item,salary)
                :
                    ()
            :
                ()
        user_choice == :
            ()
        :
            ()


本文出自 “吃瓜群众” 博客,谢绝转载!

day1

原文:http://1403428.blog.51cto.com/1393428/1965767

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!