Commit ee18c7c0 by BellCodeEditor

save project

parent a7105d90
Showing with 13 additions and 9 deletions
message = "诺依, 周末一起去看动漫展吧!" dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
length = len(message) print(dict_hgero)
i = 0
while i < length: print(dact_hero['猴队长'])
# 请对message进行遍历,取出所有元素
element = message[i] dict_hero['猴七']=32
print(element) print(dict_hero)
i += 1
\ No newline at end of file dict_hero['猴十']=25
print(dict_hero)
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