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

Administrator / lesson7_1

  • 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 37fcdd2b authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 451e8e88 c203980l843p219a8868/wx437385
Pipeline #3520 failed in 0 seconds
  • Changes 1
  • Pipelines 1
Hide whitespace changes
Inline Side-by-side
Showing with 8 additions and 8 deletions
  • diy1.py
diy1.py
View file @ 37fcdd2b
dict_a = {'1':11,'2':22,'3':33,'4':44,'5':55}
k = input("nymsma")
print (dict_a)
a = dict_a
a['5']=66
print(a['5'])
a['6']=66
print(a['6'])
if k in dict_a:
print a[k]
else:
print("mycsp")
\ No newline at end of file
if k in a:
print (str(a[k]))
else:
print("mycsp")
\ No newline at end of file
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