当前位置: 首页 > news >正文

公司 网站建设优秀包装设计网站

公司 网站建设,优秀包装设计网站,wordpress会员网站,建网站教程视频下载目录 1 前言 2 霍金说移民外太空 3 浪漫的流星雨展示 4 Python代码 1 前言 我们先给个小故事#xff0c;提一下大家兴趣#xff1b;然后我给出论据#xff0c;得出结论。最后再浪漫的流星雨表白代码奉上#xff0c;还有我自创的一首诗。开始啦#xff1a; 2 霍金说…目录 1 前言 2 霍金说移民外太空 3 浪漫的流星雨展示  4 Python代码  1 前言 我们先给个小故事提一下大家兴趣然后我给出论据得出结论。最后再浪漫的流星雨表白代码奉上还有我自创的一首诗。开始啦 2 霍金说移民外太空 霍金说我们将来外星上生存埃隆.马斯克也是这样想的。 我前面讲外星人来不到地球这个道理已经很清楚。我再说几个数据大家听听我们且不要说到更远的外星我们人类今天登上月球把一个字航员送上月球他在月球上待一分钟要消耗地球一百万美元的资源才能在月球上待一分钟 。 我们说未来在火星上殖民想想你在月球上一个人待一分钟要消耗地球一百万美元的资源你在火星上殖民几千人、几万人你得把整个地球资源毁灭掉都调到火星上去。然后你只把七十亿人调过去了几千、几万人然后他在那可能死得更快这根本不是出路这怎么会成为出路呢? 我们再看移居外星离我们地球最近的另一个恒星系叫半人马座。半人马座阿尔法星 也叫比邻星。大家注意这都是恒星比邻星距离太阳最近有多近?  4.2光年光以每秒钟三十万公里走4.2年就这我们还不知道比邻星的那个恒星旁边有没有行星。 就算有行星有没有宜居行星、类地行星。这我们还全然不知道。我们就假定那个地方有好了另一个地球你按照今天人类火箭和卫星的最高速度你单程从地球上飞到比邻星需要一万五千年到三万年。 请注意我们文明史文明有文字以后的文明迄今才五千年你单程飞到那个地方要一万五千年以上。我说过有没有行星都不知道。这个前途存在吗?根本不存在。就像外星人来不了我们这儿一样我们也到不了任何外星存在。我们今天连太阳系都没有走出去没有在太阳系的任何一个行星上殖民所以移民外星根本不是出路。 3 浪漫的流星雨展示  浪漫的流星雨 4 Python代码  def bgpic(self, picnameNone):Set background image or return name of current backgroundimage.Optional argument:picname -- a string, name of a gif-file or nopic.If picname is a filename, set the corresponding image as background.If picname is nopic, delete backgroundimage, if present.If picname is None, return the filename of the current backgroundimage.Example (for a TurtleScreen instance named screen): screen.bgpic()nopic screen.bgpic(landscape.gif) screen.bgpic()landscape.gifif picname is None:return self._bgpicnameif picname not in self._bgpics:self._bgpics[picname] self._image(picname)self._setbgpic(self._bgpic, self._bgpics[picname])self._bgpicname picname# coding: utf-8 import pygame import os import sys from pygame.locals import *os.chdir(E:/星空下的告白) os.getcwd() pygame.init() pygame.mixer.init() pygame.mixer.music.load(星空之美.mp3) # pygame.mixer.music.set_volume(0.4) pygame.mixer.music.play() bg_size width, height 300, 200 bg_rgb (255, 255, 255) screen1 pygame.display.set_mode(bg_size) pygame.display.set_caption(告白音乐) clock pygame.time.Clock() pause_rect pause_image.get_rect() print(pause_rect.width, pause_rect.height) pause_rect.left, pause_rect.top (width - pause_rect.width) // 2, (height - pause_rect.height) // 2 from turtle import * from random import random, randintos.chdir(E:星空下的告白) screen Screen() width, height 900, 700 screen.setup(width, height) screen.title(浪漫的流星雨) screen.bgcolor(black) screen.mode(logo) screen.delay(0) printer Turtle() printer.hideturtle() printer.penup() printer.color(red) printer.goto(-100, -350) printer.write(宇宙广阔(弱水三千)\n\n, moveTrue, alignleft, font(Italic, 30, bold)) printer.goto(-50, -400) printer.write(只寻你一颗!(只取一瓢饮!)\n\n, moveTrue, alignleft, font(Italic, 30, bold)) t Turtle(visibleFalse, shapecircle) t.pencolor(white) t.fillcolor(white) t.penup() t.setheading(-90) t.goto(width / 2, randint(-height / 2, height / 2)) stars [] for i in range(300):star t.clone()s random() / 3if s 0.01 and s 0.03:star.pencolor(black)star.fillcolor(black)elif s 0.03 and s 0.04:star.pencolor(lightcoral)star.fillcolor(lightcoral)elif s 0.05 and s 0.1:star.pencolor(green)star.fillcolor(green)elif s 0.15 and s 0.16:star.pencolor(yellow)star.fillcolor(yellow)elif s 0.19 and s 0.2:star.pencolor(red)star.fillcolor(red)elif s 0.21 and s 0.22:star.pencolor(purple)star.fillcolor(purple)elif s 0.29 and s 0.3:star.pencolor(darkorange)star.fillcolor(darkorange)elif s 0.31 and s 0.32:star.pencolor(red)star.fillcolor(yellow)elif s 0.32 and s 0.33:star.pencolor(yellow)star.fillcolor(white)star.shapesize(s, s)star.speed(int(s * 30))star.setx(width / 2 randint(1, width))star.sety(randint(-height / 2, height / 2))# star.showturtle()stars.append(star) i 0 pause False while True:i 0for star in stars:star.setx(star.xcor() - 3 * star.speed())if star.xcor() -width / 2:star.hideturtle()star.setx(width / 2 randint(1, width))star.sety(randint(-height / 2, height / 2))star.showturtle()if i 100:break# 查找队列事件for event in pygame.event.get():# 查找点击关闭窗口事件if event.type QUIT:sys.exit# 查找鼠标左右击事件if event.type MOUSEBUTTONDOWN:if event.button 1:pause not pauseif event.button 3:pause not pauseif event.type KEYDOWN:if event.key K_SPACE:pause not pausescreen1.fill(bg_rgb)if pause:pygame.mixer.music.pause()screen1.blit(pause_image, pause_rect)else:pygame.mixer.music.unpause()screen1.blit(play_image, pause_rect)pygame.display.flip()clock.tick(30) def bgpic(self, picnameNone):     Set background image or return name of current backgroundimage. Optional argument:     picname -- a string, name of a gif-file or nopic. If picname is a filename, set the corresponding image as background.     If picname is nopic, delete backgroundimage, if present.     If picname is None, return the filename of the current backgroundimage. Example (for a TurtleScreen instance named screen):     screen.bgpic()     nopic     screen.bgpic(landscape.gif)     screen.bgpic()     landscape.gif         if picname is None:         return self._bgpicname     if picname not in self._bgpics:         self._bgpics[picname] self._image(picname)     self._setbgpic(self._bgpic, self._bgpics[picname])     self._bgpicname picname # coding: utf-8 import pygame import os import sys from pygame.locals import * os.chdir(E:/星空下的告白) os.getcwd() pygame.init() pygame.mixer.init() pygame.mixer.music.load(星空之美.mp3) # pygame.mixer.music.set_volume(0.4) pygame.mixer.music.play() bg_size width, height 300, 200 bg_rgb (255, 255, 255) screen1 pygame.display.set_mode(bg_size) pygame.display.set_caption(告白音乐) clock pygame.time.Clock() pause_rect pause_image.get_rect() print(pause_rect.width, pause_rect.height) pause_rect.left, pause_rect.top (width - pause_rect.width) // 2, (height - pause_rect.height) // 2 from turtle import * from random import random, randint os.chdir(E:星空下的告白) screen Screen() width, height 900, 700 screen.setup(width, height) screen.title(浪漫的流星雨) screen.bgcolor(black) screen.mode(logo) screen.delay(0) printer Turtle() printer.hideturtle() printer.penup() printer.color(red) printer.goto(-100, -350) printer.write(宇宙广阔(弱水三千)\n\n, moveTrue, alignleft, font(Italic, 30, bold)) printer.goto(-50, -400) printer.write(只寻你一颗!(只取一瓢饮!)\n\n, moveTrue, alignleft, font(Italic, 30, bold)) t Turtle(visibleFalse, shapecircle) t.pencolor(white) t.fillcolor(white) t.penup() t.setheading(-90) t.goto(width / 2, randint(-height / 2, height / 2)) stars [] for i in range(300):     star t.clone()     s random() / 3     if s 0.01 and s 0.03:         star.pencolor(black)         star.fillcolor(black)     elif s 0.03 and s 0.04:         star.pencolor(lightcoral)         star.fillcolor(lightcoral)     elif s 0.05 and s 0.1:         star.pencolor(green)         star.fillcolor(green)     elif s 0.15 and s 0.16:         star.pencolor(yellow)         star.fillcolor(yellow)     elif s 0.19 and s 0.2:         star.pencolor(red)         star.fillcolor(red)     elif s 0.21 and s 0.22:         star.pencolor(purple)         star.fillcolor(purple)     elif s 0.29 and s 0.3:         star.pencolor(darkorange)         star.fillcolor(darkorange)     elif s 0.31 and s 0.32:         star.pencolor(red)         star.fillcolor(yellow)     elif s 0.32 and s 0.33:         star.pencolor(yellow)         star.fillcolor(white)     star.shapesize(s, s)     star.speed(int(s * 30))     star.setx(width / 2 randint(1, width))     star.sety(randint(-height / 2, height / 2))     # star.showturtle()     stars.append(star) i 0 pause False while True:     i 0     for star in stars: star.setx(star.xcor() - 3 * star.speed())         if star.xcor() -width / 2:             star.hideturtle()             star.setx(width / 2 randint(1, width))             star.sety(randint(-height / 2, height / 2))             star.showturtle()     if i 100:         break # 查找队列事件     for event in pygame.event.get():         # 查找点击关闭窗口事件         if event.type QUIT:             sys.exit         # 查找鼠标左右击事件         if event.type MOUSEBUTTONDOWN:             if event.button 1:                 pause not pause             if event.button 3:                 pause not pause if event.type KEYDOWN:             if event.key K_SPACE:                 pause not pause     screen1.fill(bg_rgb)     if pause:         pygame.mixer.music.pause()         screen1.blit(pause_image, pause_rect)     else:         pygame.mixer.music.unpause()         screen1.blit(play_image, pause_rect)     pygame.display.flip()     clock.tick(30)
http://www.zqtcl.cn/news/576476/

相关文章:

  • 自做刷赞网站山东东成建设咨询有限公司网站
  • 泉州网站制作推广网站建设一年多少
  • 超大型网站建设公司网站打开显示建设中
  • 惠东县网站建设建设方案
  • 怎么把做的网站发布长春建网站
  • 织梦网站手机端郑州网站制作公司名单
  • 如何建设网站安全网站桥页也叫
  • 南浔网站建设昆山智能网站开发
  • 阿里云可以做电商网站吗杭州网站建设浙江
  • 查询网站备案进度网站建设推广
  • 怎么做公司网站需要什么科目高端网站建设教学
  • 资讯平台网站模板中企中立做的网站好吗
  • 网站开发人员配备山西省吕梁市简介
  • 网站注销主体注销中国建设教育协会培训报名网站
  • 电商网站设计思想建设化妆品网站的成本
  • 做房产网站能赚钱吗深圳龙华区邮政编码
  • 网站开发素材代码手机网站 win8风格
  • 免费推广网站软件班级网站怎么做ppt模板
  • 在线做任务的网站有哪些wordpress ui 插件
  • 竣工验收备案表查询网站优化大师win10能用吗
  • php 网站管理系统做生鲜管理系统的网站
  • 昆山建设工程招聘信息网站业绩显示屏 东莞网站建设技术支持
  • 百度我的网站广东广州网站建设
  • 怎么提高网站流量沈阳有资质做网站的公司有哪些
  • 内蒙古住房与城乡建设厅网站网址微信可以上网
  • 如何网站seo中国化工第九建设公司网站
  • 无锡网站推广优化公司单位网站建设必要性
  • 网站建设丶金手指花总12网站建设是怎么挣钱
  • 网站开发都是用什么框架广西建设网人员查询网
  • 做购物网站怎么写开题报告中山如何建网站