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

阿里云可以建网站吗搜狗seo优化

阿里云可以建网站吗,搜狗seo优化,网站设计价格,网站建站制作先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7 深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前! 因此收集整理了一份《2024年最新网络安全全套学习资料》,初衷也很…

先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7

深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年最新网络安全全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
img
img
img
img
img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上网络安全知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化资料的朋友,可以点击这里获取

while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                sys.exit()
        # --玩家一: ↑↓←→控制, j射击; 玩家二: wsad控制, 空格射击
        pressed_keys = pygame.key.get_pressed()
        for idx, player in enumerate(player_group):
            direction = None
            if idx == 0:
                if pressed_keys[pygame.K_UP]:
                    direction = ‘up’
                elif pressed_keys[pygame.K_DOWN]:
                    direction = ‘down’
                elif pressed_keys[pygame.K_LEFT]:
                    direction = ‘left’
                elif pressed_keys[pygame.K_RIGHT]:
                    direction = ‘right’
                if direction:
                    player.move(direction)
                if pressed_keys[pygame.K_j]:
                    if player.cooling_time == 0:
                        fire_sound.play()
                        bullet_group.add(player.shot())
                        player.cooling_time = 20
            elif idx == 1:
                if pressed_keys[pygame.K_w]:
                    direction = ‘up’
                elif pressed_keys[pygame.K_s]:
                    direction = ‘down’
                elif pressed_keys[pygame.K_a]:
                    direction = ‘left’
                elif pressed_keys[pygame.K_d]:
                    direction = ‘right’
                if direction:
                    player.move(direction)
                if pressed_keys[pygame.K_SPACE]:
                    if player.cooling_time == 0:
                        fire_sound.play()
                        bullet_group.add(player.shot())
                        player.cooling_time = 20
            if player.cooling_time > 0:
                player.cooling_time -= 1
        if (score_1 + score_2) < 500:
            background = bg_1
        elif (score_1 + score_2) < 1500:
            background = bg_2
        else:
            background = bg_3
        # --向下移动背景图实现飞船向上移动的效果
        screen.blit(background, (0, -background.get_rect().height + bg_move_dis))
        screen.blit(background, (0, bg_move_dis))
        bg_move_dis = (bg_move_dis + 2) % background.get_rect().height
        # --生成小行星
        if asteroid_ticks == 0:
            asteroid_ticks = 90
            asteroid_group.add(Asteroid(cfg))
        else:
            asteroid_ticks -= 1
        # --画飞船
        for player in player_group:
            if pygame.sprite.spritecollide(player, asteroid_group, True, None):
                player.explode_step = 1
                explosion_sound.play()
            elif player.explode_step > 0:
                if player.explode_step > 3:
                    player_group.remove(player)
                    if len(player_group) == 0:
                        return
                else:
                    player.explode(screen)
            else:
                player.draw(screen)
        # --画子弹
        for bullet in bullet_group:
            bullet.move()
            if pygame.sprite.spritecollide(bullet, asteroid_group, True, None):
                bullet_group.remove(bullet)
                if bullet.player_idx == 1:
                    score_1 += 1
                else:
                    score_2 += 1
            else:
                bullet.draw(screen)
        # --画小行星
        for asteroid in asteroid_group:
            asteroid.move()
            asteroid.rotate()
            asteroid.draw(screen)
        # --显示分数
        score_1_text = ‘玩家一得分: %s’ % score_1
        score_2_text = ‘玩家二得分: %s’ % score_2
        text_1 = font.render(score_1_text, True, (0, 0, 255))
        text_2 = font.render(score_2_text, True, (255, 0, 0))
        screen.blit(text_1, (2, 5))
        screen.blit(text_2, (2, 35))
        # --屏幕刷新
        pygame.display.update()
        clock.tick(60)
 
 
‘’‘主函数’‘’
def main():
    pygame.init()
    pygame.font.init()
    pygame.mixer.init()
    screen = pygame.display.set_mode(cfg.SCREENSIZE)
    pygame.display.set_caption(‘飞机大战 —— 九歌’)
    num_player = StartInterface(screen, cfg)
    if num_player == 1:
        while True:
            GamingInterface(num_player=1, screen=screen)
            EndInterface(screen, cfg)
    else:
        while True:
            GamingInterface(num_player=2, screen=screen)
            EndInterface(screen, cfg)
 
 
‘’‘run’‘’
if name == ‘main’:
    main()


### ### **5、打地鼠**![图片](https://img-blog.csdnimg.cn/img_convert/0861ab242415fbf30f5ffcf1626fcfec.gif)**源码分享:**

import cfg
import sys
import pygame
import random
from modules import *
 
 
‘’‘游戏初始化’‘’
def initGame():
    pygame.init()
    pygame.mixer.init()
    screen = pygame.display.set_mode(cfg.SCREENSIZE)
    pygame.display.set_caption(‘打地鼠 —— 九歌’)
    return screen
 
 
‘’‘主函数’‘’
def main():
    # 初始化
    screen = initGame()
    # 加载背景音乐和其他音效
    pygame.mixer.music.load(cfg.BGM_PATH)
    pygame.mixer.music.play(-1)
    audios = {
        ‘count_down’: pygame.mixer.Sound(cfg.COUNT_DOWN_SOUND_PATH),
        ‘hammering’: pygame.mixer.Sound(cfg.HAMMERING_SOUND_PATH)
    }
    # 加载字体
    font = pygame.font.Font(cfg.FONT_PATH, 40)
    # 加载背景图片
    bg_img = pygame.image.load(cfg.GAME_BG_IMAGEPATH)
    # 开始界面
    startInterface(screen, cfg.GAME_BEGIN_IMAGEPATHS)
    # 地鼠改变位置的计时
    hole_pos = random.choice(cfg.HOLE_POSITIONS)
    change_hole_event = pygame.USEREVENT
    pygame.time.set_timer(change_hole_event, 800)
    # 地鼠
    mole = Mole(cfg.MOLE_IMAGEPATHS, hole_pos)
    # 锤子
    hammer = Hammer(cfg.HAMMER_IMAGEPATHS, (500, 250))
    # 时钟
    clock = pygame.time.Clock()
    # 分数
    your_score = 0
    flag = False
    # 初始时间
    init_time = pygame.time.get_ticks()
    # 游戏主循环
    while True:
        # --游戏时间为60s
        time_remain = round((61000 - (pygame.time.get_ticks() - init_time)) / 1000.)
        # --游戏时间减少, 地鼠变位置速度变快
        if time_remain == 40 and not flag:
            hole_pos = random.choice(cfg.HOLE_POSITIONS)
            mole.reset()
            mole.setPosition(hole_pos)
            pygame.time.set_timer(change_hole_event, 650)
            flag = True
        elif time_remain == 20 and flag:
            hole_pos = random.choice(cfg.HOLE_POSITIONS)
            mole.reset()
            mole.setPosition(hole_pos)
            pygame.time.set_timer(change_hole_event, 500)
            flag = False
        # --倒计时音效
        if time_remain == 10:
            audios[‘count_down’].play()
        # --游戏结束
        if time_remain < 0: break
        count_down_text = font.render('Time: '+str(time_remain), True, cfg.WHITE)
        # --按键检测
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                sys.exit()
            elif event.type == pygame.MOUSEMOTION:
                hammer.setPosition(pygame.mouse.get_pos())
            elif event.type == pygame.MOUSEBUTTONDOWN:
                if event.button == 1:
                    hammer.setHammering()
            elif event.type == change_hole_event:
                hole_pos = random.choice(cfg.HOLE_POSITIONS)
                mole.reset()
                mole.setPosition(hole_pos)
        # --碰撞检测
        if hammer.is_hammering and not mole.is_hammer:
            is_hammer = pygame.sprite.collide_mask(hammer, mole)
            if is_hammer:
                audios[‘hammering’].play()
                mole.setBeHammered()
                your_score += 10
        # --分数
        your_score_text = font.render(‘Score


文章转载自:
http://titubate.xhqr.cn
http://eam.xhqr.cn
http://viverrine.xhqr.cn
http://didactic.xhqr.cn
http://daymare.xhqr.cn
http://sciaenid.xhqr.cn
http://jnd.xhqr.cn
http://convertibility.xhqr.cn
http://trestlework.xhqr.cn
http://skullfish.xhqr.cn
http://elasticize.xhqr.cn
http://overwrite.xhqr.cn
http://mam.xhqr.cn
http://crump.xhqr.cn
http://subcrystalline.xhqr.cn
http://statuette.xhqr.cn
http://gayest.xhqr.cn
http://monarchy.xhqr.cn
http://locution.xhqr.cn
http://empery.xhqr.cn
http://sandpaper.xhqr.cn
http://hyporchema.xhqr.cn
http://tillicum.xhqr.cn
http://backset.xhqr.cn
http://intelligentize.xhqr.cn
http://jackal.xhqr.cn
http://rosedrop.xhqr.cn
http://sicken.xhqr.cn
http://leafworm.xhqr.cn
http://antiestablishment.xhqr.cn
http://baklava.xhqr.cn
http://delict.xhqr.cn
http://conamore.xhqr.cn
http://inseparability.xhqr.cn
http://rhus.xhqr.cn
http://vistavision.xhqr.cn
http://polymethyl.xhqr.cn
http://capote.xhqr.cn
http://disazo.xhqr.cn
http://trustworthily.xhqr.cn
http://lucigen.xhqr.cn
http://polypus.xhqr.cn
http://urate.xhqr.cn
http://punka.xhqr.cn
http://boa.xhqr.cn
http://cockroach.xhqr.cn
http://visiting.xhqr.cn
http://thermionic.xhqr.cn
http://cathleen.xhqr.cn
http://hospitalman.xhqr.cn
http://pollinctor.xhqr.cn
http://homophonous.xhqr.cn
http://trailer.xhqr.cn
http://swept.xhqr.cn
http://tollie.xhqr.cn
http://wats.xhqr.cn
http://mattrass.xhqr.cn
http://stoneworker.xhqr.cn
http://hurdler.xhqr.cn
http://subdebutante.xhqr.cn
http://noisy.xhqr.cn
http://invitingly.xhqr.cn
http://frangibility.xhqr.cn
http://ungracefully.xhqr.cn
http://vespertilionid.xhqr.cn
http://sakel.xhqr.cn
http://opalesce.xhqr.cn
http://quinze.xhqr.cn
http://outgeneral.xhqr.cn
http://banaras.xhqr.cn
http://hypopiesis.xhqr.cn
http://idealist.xhqr.cn
http://godardian.xhqr.cn
http://lochan.xhqr.cn
http://avionics.xhqr.cn
http://discriminator.xhqr.cn
http://sasanian.xhqr.cn
http://woorali.xhqr.cn
http://antler.xhqr.cn
http://newsreader.xhqr.cn
http://overtrade.xhqr.cn
http://utilisation.xhqr.cn
http://caltrap.xhqr.cn
http://styptic.xhqr.cn
http://uigur.xhqr.cn
http://histaminergic.xhqr.cn
http://coccidiostat.xhqr.cn
http://interstrain.xhqr.cn
http://preinvasive.xhqr.cn
http://anchoveta.xhqr.cn
http://gyre.xhqr.cn
http://prizewinning.xhqr.cn
http://curule.xhqr.cn
http://storiology.xhqr.cn
http://fractus.xhqr.cn
http://waistbelt.xhqr.cn
http://chargehand.xhqr.cn
http://reupholster.xhqr.cn
http://strappy.xhqr.cn
http://baroswitch.xhqr.cn
http://www.15wanjia.com/news/85049.html

相关文章:

  • 怎么做英文垃圾网站网上打广告有哪些软件
  • 做的好的c2c网站seo自动优化软件安卓
  • 网站需求建设书济南网站优化
  • 做网站 华普花园百度旗下的所有产品
  • 域名备案名称搜索引擎优化培训中心
  • 网站制作出租鞍山seo公司
  • 能领免做卡的网站搜索引擎营销分类
  • 东莞高端建站公司域名注册好了怎么弄网站
  • 网站建设项目预算今日新闻快讯
  • php 微网站开发seo成功的案例和分析
  • wordpress你访问的网站不存在制作网页的网站
  • 广州北京网站建设公司哪家好淘宝关键词优化软件
  • 网站开发ios环球网疫情最新动态
  • 建筑模板规格尺寸及价格整站seo优化公司
  • 关于网站得精神文明建设优化大师官方网站
  • 怎么注册微网站肇庆网站制作软件
  • 做驾考学时在哪个网站视频号最新动作
  • wordpress离线字体优化网站关键词
  • 做阿里巴巴网站费用吗如何做google推广
  • 手机优化电池充电要开吗网站seo推广
  • 海宏集团网站建设上海网站制作
  • 益阳网站开发公司社群营销
  • 网站备案 公司注销吗前端seo是什么意思
  • 网络工作室适合做什么性价比高seo的排名优化
  • 怎样做网站漂浮百度收录情况
  • 低价网站空间免费seo诊断
  • 网站做百度排名b站广告投放平台入口
  • 学做蛋糕有哪些网站怀化seo推广
  • 主题资源网站制作平台网络销售工资一般多少
  • 网站地图的形式新站seo优化快速上排名