机器人
积分排行榜
Scratch
积分排行榜
Python
在线答题
积分排行榜
活跃排行榜
打字练习
Microbit
C++
在线答题
积分排行榜
活跃排行榜
网盘
积分
未登录
未登录
登录学习
作者:
王少祺
更新时间:
2025-08-27 22:42
浏览:
16次
点赞:
1次
热度:
20
import turtle as t import pygame import time as tt s=int(input("因数")) c=int(input("因数")) print("计算结果如下") print("等待两秒") tt.sleep(2) print(s*c) print("五秒后计算国家机密内容,请无关人员离开") print(5) tt.sleep(1) print(4) tt.sleep(1) print(3) tt.sleep(1) print(2) tt.sleep(1) print(1) tt.sleep(1) import pygame pygame.init() width1 = 640 height1 = 480 screen1 = pygame.display.set_mode((width1, height1)) pygame.display.set_caption("Window 1") width2 = 400 height2 = 300 screen2 = pygame.display.set_mode((width2, height2)) pygame.display.set_caption("The disclosure of national secrets can lead to serious consequences. Classified information of the country") running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False pygame.display.quit() screen1.fill((255, 255, 255)) pygame.display.update(screen1.get_rect()) screen2.fill((128, 128, 128)) pygame.display.update(screen2.get_rect()) pygame.quit()
点赞成功
分享作品
×