Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson8-4

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 5933aa01 authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 9911a141
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 1 deletions
  • diy.py
  • kilk.py
diy.py
View file @ 5933aa01
...@@ -3,7 +3,8 @@ dict= {'可口可乐':3,'旺仔牛逼奶':4,'农夫山泉':1,'辣条':3,'巴西 ...@@ -3,7 +3,8 @@ dict= {'可口可乐':3,'旺仔牛逼奶':4,'农夫山泉':1,'辣条':3,'巴西
k=input('你想要什么么') k=input('你想要什么么')
v=input('shuiguojage') v=input('shuiguojage')
if k in dict: if k in dict:
if floa if float(v)<cost[k]:
print('叮咚~你的'+k+'需要支付'+str(dict[k])+'元') print('叮咚~你的'+k+'需要支付'+str(dict[k])+'元')
else: else:
print('没货了') print('没货了')
\ No newline at end of file
This diff is collapsed. Click to expand it.
kilk.py 0 → 100644
View file @ 5933aa01
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment