Commit d200cfb2 by BellCodeEditor

save project

parent b8d37555
dict={"可口可乐":3,"旺仔牛奶":4,"农夫山泉":1,"辣条":3,"巴西烤肉":2,"果冻":4,"乐事":5,"奥利奥":10,"巧克力":6}
s=input("你想买什么?")
if s in dict:
print("您的商品"+s+"需要"+str(dict[s])+"元")
else:
print("对不起,本售货机里没有您想要的商品☹️ ☹️")
\ No newline at end of file
goods={"农夫山泉":1}
goods.pop("农夫山泉")
print(goods)
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!" print("😀 🤣 😅 😊 😍 😗 😚 🤗 🫡 😑 😶 ‍ 🌫 ️ 😣 🤐 😫 😌 😝 😓 🫤 🤑 🙁 😟 😭 😨 😁 😃 😆 😋 😘 😙 ☺ ️ 🤩 🙄 😥 😯 🤤 😞 ☹ ️ 🫠 😕 😒 😜 😴 😪 😮 😏 😂 🤦 ‍ ♀ ️❤️ 🤷 ‍ ♂ ️😉 😉 😎 😊 😒 🤡 ")
for i in range(len(message)): \ No newline at end of file
print(message[i])
i+=1
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
import requests
r = requests.get('https://www.python.org')
print(r.status_code)
\ No newline at end of file
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