2018年12月25日

摘要: username = input('请输入你的用户名:') password = input('请输入你的密码:') print('恭喜注册成功') li = [] with open('information_of_user', mode='w', encoding='utf-8') as f: f.write('{}\n{}'.format(username, password)... 阅读全文
posted @ 2018-12-25 19:11 python小菜鸡儿 阅读(97) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-25 16:36 python小菜鸡儿 阅读(53) 评论(0) 推荐(0)
摘要: li = [{'name':'苹果','price':10}, {'name':'梨','price':100}, {'name':'香蕉','price':5}] money = input('请输入你有多少钱') shopping_car = {} if money.strip().isdigit() and int(money) > 0: w... 阅读全文
posted @ 2018-12-25 16:32 python小菜鸡儿 阅读(54) 评论(0) 推荐(0)

导航