sairate 7df250638d chore: 添加项目基础结构和示例代码
- 创建 .idea 目录和相关配置文件,设置项目结构
- 添加多个课堂成果示例代码,涵盖不同主题和功能
- 创建和配置 .gitignore 文件,忽略特定文件和目录
2025-07-05 09:36:00 +08:00

35 lines
1.4 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 字典王者show英雄和台词一一对应
actor = {'钟馗':'沧海桑田,唯混沌与破烂源源不断',
'李白':'将进酒,杯莫停',
'甄姬':'人家抒发哀伤时,不要随便破坏氛围好吗?',
'百里守约':'路过草丛的熟人,以子弹礼貌招呼!',
'':'比任何对手都强,乃人生最大的烦恼'}
for i in range(len(actor)):
key = input('*欢迎今天到场的英雄*')
if key in actor.keys():
print(actor[key])
else:
print('报幕错误show搞砸了')
break
# 元组:王者队伍初组成(五人一队,英雄可重复选用,英雄选定不可更改)
team1 = ('钟馗','李白','百里守约','甄姬','项羽')
team2 = ('周瑜','曹操','鲁班七号','','妲己')
# 列表LiBai和Kai同台竞技
LiBai = ['侠客行','将进酒','神来之笔','青莲剑歌']
Kai = ['修罗之魂','极刃风暴','回旋之刃','不灭魔躯']
# 集合:化妆舞会好友圈
my_set = set()
while True:
choice = input('请选择你的操作1.关注2.取关3.退出好友圈:')
if choice == '1':
in_name = input('请问你要关注谁:')
my_set.add(in_name)
if choice == '2':
out_name = input('请问你要取关谁:')
my_set.remove(out_name)
if choice == '3':
break
print(my_set)