python学习心得-第二天
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python学习心得-第二天相关的知识,希望对你有一定的参考价值。
time data = time.strftime(,time.localtime(time.time())) (data) product_list = [(,),(,),(,)] shop_car = [] exit_flag = salary = () salary.isdigit(): salary = (salary) : () item (product_list): index = item[] p_name = item[][] p_price = item[][] (index,p_name,p_price) welcome = (.center(,)) (welcome) exit_flag : item (product_list): index = item[] p_name = item[][] p_price = item[][] (index,p_name,p_price) user_choice = () user_choice.isdigit(): user_choice = (user_choice) user_choice < (product_list): p_item = product_list[user_choice] p_item[] < salary: shop_car.append(p_item) salary -=p_item[] (%(p_item,salary)) : (%salary,data) : () : user_choice == user_choice == user_choice == user_choice == : (.center(,)) item shop_car: (item) (.center(,)) (%salary) (data) exit_flag =
以上是关于python学习心得-第二天的主要内容,如果未能解决你的问题,请参考以下文章