元素周期表,太给力了!》

 元素周期表,太给力了!

 
  我是氢,我最轻,火箭靠我运卫星;
  我是氦,我无赖,得失电子我最菜;
  我是锂,密度低,遇水遇酸把泡起;
  我是铍,耍赖皮,虽是金属难电离;
  我是硼,有点红,论起电子我很穷;
  我是碳,反应慢,既能成链又成环;
  我是氮,我阻燃,加氢可以合成氨;
  我是氧,不用想,离开我就憋得慌;
  我是氟,最恶毒,抢个电子就满足;
  我是氖,也不赖,通电红光放出来;
  我是钠,脾气大,遇酸遇水就火大;
  我是镁,最爱美,摄影烟花放光辉;
  我是铝,常温里,浓硫酸里把澡洗;
  我是硅,色黑灰,信息元件把我堆;
  我是磷,害人精,剧毒列表有我名;
  我是硫,来历久,沉淀金属最拿手;
  我是氯,色黄绿,金属电子我抢去;
  我是氩,活性差,霓虹紫光我来发;
  我是钾,把火加,超氧化物来当家;
  我是钙,身体爱,骨头牙齿我都在;
  我是钛,过渡来,航天飞机我来盖;
  我是铬,正六铬,酒精过来变绿色;
  我是锰,价态多,七氧化物爆炸猛;
  我是铁,用途广,不锈钢喊我叫爷;
 我是铜,色紫红,投入X气棕红;
  我是砷,颜色深,三价元素夺你魂;
  我是溴,挥发臭,液态非金我来秀;
  我是铷,碱金属,沾水烟花钾不如;
  我是碘,升华烟,遇到淀粉蓝点点;
  我是铯,金黄色,入水爆炸容器破;
  我是钨,高温度,其他金属早呜呼;
  我是金,很稳定,扔进王水影无形;
  我是汞,有剧毒,液态金属我为独;
  我是铀,浓缩后,造原子弹我最牛;
  我是镓,易融化,沸点很高难蒸发;
  我是铟,软如金,轻微放射宜小心;
  我是铊,能脱发,投毒出名看清华;
  我是锗,可晶格,红外窗口能当壳;
  我是硒,补人体,口服液里有玄机;
  我是铅,能储电,子弹头里也出现;

以下是一个Python高级烟花代码的例子: ```python import pygame import random # 初始化 Pygame pygame.init() # 设置窗口大小 screen = pygame.display.set_mode((800, 600)) # 设置窗口标题 pygame.display.set_caption("烟花秀") # 定义烟花类 class Firework: def __init__(self): self.x = random.randint(0, 800) self.y = random.randint(0, 200) self.color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) self.radius = 1 self.max_radius = random.randint(50, 100) self.exploded = False self.particles = [] def update(self): if not self.exploded: self.radius += 1 if self.radius >= self.max_radius: self.explode() else: for particle in self.particles: particle.update() if all([particle.alpha <= 0 for particle in self.particles]): fireworks.remove(self) def draw(self): if not self.exploded: pygame.draw.circle(screen, self.color, (self.x, self.y), self.radius) else: for particle in self.particles: particle.draw() def explode(self): self.exploded = True for i in range(100): speed = random.randint(1, 5) direction = random.randint(0, 360) color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) self.particles.append(Particle(self.x, self.y, speed, direction, color)) # 定义粒子类 class Particle: def __init__(self, x, y, speed, direction, color): self.x = x self.y = y self.speed = speed self.direction = direction self.color = color self.alpha = 255 def update(self): radians = self.direction * (3.14 / 180) self.x += self.speed * round(math.cos(radians)) self.y -= self.speed * round(math.sin(radians)) self.alpha -= 5 def draw(self): pygame.draw.circle(screen, self.color + (self.alpha,), (self.x, self.y), 5) # 创建烟花列表 fireworks = [] # 游戏循环 running = True while running: # 处理事件 for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: # 按下 1 时生成一个新的烟花 if event.key == pygame.K_1: fireworks.append(Firework()) # 按下 2 时生成 10 个烟花 if event.key == pygame.K_2: for i in range(10): fireworks.append(Firework()) # 更新和绘制烟花 for firework in fireworks: firework.update() firework.draw() # 刷新屏幕 pygame.display.flip() # 退出 Pygame pygame.quit() ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值