ICode9

精准搜索请尝试: 精确搜索
  • crew2022-08-25 21:33:17

    A crew is a body or a class of people who work at a common activity, generally in a structured or hierarchical organization. A location in which a crew works is called a crewyard or a workyard. The word has nautical resonances: the tasks involved in opera

  • Kubebuilder模块2022-06-25 20:33:53

    CRD创建    Group表示CRD所属的组,它可以支持多种不同版本、不同类型的资源构建,Version表示CRD的版本号,Kind表示CRD的类型 kubebuilder create api --group ship --version v1beta1 --kind Demo kubebuilder create api --group ship --version v1 --kind Test kubebuilder creat

  • 2022-2023学年英语周报高二课标外研第7期答案汇总2022-04-03 12:34:18

    进入查看:2022-2023学年英语周报高二课标外研第7期答案汇总   Mohe is located in the Heilongjiang Province bordering Russia, and is the northern city in the country. The city is often referred to as “China’s Arctic town”, and is one of the few locations in Chi

  • .net core json序列化 long类型转化成字符串2022-03-18 17:08:07

    在需要序列化的字段上标记特性 [JsonConverter(typeof(NumberConverter), NumberConverterShip.Int64)] 以下是实现类 using System;using System.ComponentModel;using System.Linq;using Newtonsoft.Json; namespace Holder.Framework.Common{ /// <inheritdoc /> ///

  • python应用篇之外星人入侵项目——外星人(完结)2021-10-17 15:01:46

    前言   我们上篇文章给大家介绍了射杀外星人功能的实现,其中主要包括检测子弹与外星人碰撞,生成新的外星人群、提高子弹的速度以及最后将update_bullets()方法进行了重构。接下来,给大家介绍游戏结束功能的实现,首先介绍检测外星人与飞船的碰撞功能的实现。 一、结束游戏   

  • python—列表2021-10-09 00:00:09

    列表list 1、列表创建 list1 = [3.14, 1.61, 0, -9, 6] list2 = [‘train’, ‘bus’, ‘car’, ‘ship’] list3 = [‘a’,200,‘b’,150, ‘c’,100] list4 = [] #创建空列表 在Python中,经常用到列表中的列表,即二维列表 2、列表访问 索引访问方式适用于所有序列类型

  • 三、mycat实验数据2021-08-16 19:32:31

      最近有点忙更新的太慢抱歉了。   一、实验环境 实验环境      服务内容       192.168.0.1 mycat 192.168.0.2 mysql192.168.0.3 mysql   二、准备的实验数据如下: 192.168.0.2: create database order_db; create user im_mycat@'192.168.0.%' identified by '12

  • 39jqGrid - 集成时间选择器插件2021-07-07 11:02:27

    这是第一次集成其他的插件。第一个插件就是日期插件(Datepicker)。 尝试去点击某一行,并且选择Last Sales单元格。一个时间选择面板将会弹出。 HTML代码举例 <html> <head> <title>jqGrid 实例</title> <link rel="stylesheet" href="/jqGrid/javascript/datepicker/jque

  • python从入门到实践(第2版) 练习13-62021-06-12 21:33:26

    这一练习题要求在之前的练习中增加记录飞船碰撞次数和记录射杀外星人个数的功能,再设置游戏结束条件。 记录飞船撞多少次的功能书上的例子已经实现,不用做太多改变。 记录射杀多少个外星人的功能,我的思路是,通过对检查子弹与飞船碰撞所返回的字典进行for循环,每次循环计数增加1来实

  • 游戏更新2021-05-14 21:01:26

    经过测试修改后,成功的将游戏《sing际争霸》的子弹设置为自定义的图片,效果图如下所示: 更大杀伤力的子弹,及其图片之间更搭配= = 源代码: import pygame import sys from settings import Settings from ship import Ship #1 from bullet import Bullet from bullet2 import Bul

  • 《Python编程:从入门到实践》项目一“外星人入侵”实现保存最高分至本地文件2021-05-11 11:01:27

    各模块代码 1.alien_invasion.py import pygame from pygame.sprite import Group from settings import Settings from game_stats import GameStats from scoreboard import Scoreboard from button import Button from ship import Ship import game_functions as gf de

  • DuiEditor File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\viewscrl.cpp报错2021-05-03 23:58:09

    一、错误 如题:报以下这个错误 Microsoft Visual C++ Debug Library Debug Assertion Failed! Program: …DuiLib_DuiEditor-master\DuiLib_DuiEditor\bin\DuiEditor_Ad.exe File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\viewscrl.cpp Line: 482 For information on how

  • Python项目:游戏 alien_invasion2021-05-02 00:02:34

    游戏效果展示 待审核中····· 组织结构 源代码及必要文件 alien_invasion.py import pygame from settings import Settings from ship import Ship from pygame.sprite import Group from game_stats import GameStats from button import Button fr

  • 银河英雄传说2021-05-01 13:01:45

    有一个划分为 NN 列的星际战场,各列依次编号为 1,2,…,N1,2,…,N。 有 NN 艘战舰,也依次编号为 1,2,…,N1,2,…,N,其中第 ii 号战舰处于第 ii 列。 有 TT 条指令,每条指令格式为以下两种之一: M i j,表示让第 ii 号战舰所在列的全部战舰保持原有顺序,接在第 jj 号战舰所

  • 14.计分_1(添加Play按钮)2021-04-27 15:59:44

    1.添加Play按钮:Play按钮在开始游戏前出现,结束游戏后再次出现。需要使游戏一开始处于非活动状态,在game_stats.py中修改game_active为False。 新建button模块,创建Button类,用于创建带标签的实心矩形。该模块导入了pygame.font模块将文本渲染到屏幕上,Button类中pygame.font.SysFo

  • 海运集装箱货运术语大全!收藏吧!2021-04-19 15:19:09

    在国际海运集装箱业务中,经常会用到一些缩略语,整理了其中一些比较常用的缩略语供大家参考。 海运集装箱常用缩略语 A/W 全水路 All Water ANER 亚洲北美东行运费协定 Asia NorthAmerica EastboundRate B/L 海运提单 Bill of Lading B/R 买价 Buying Rate BAF 燃油附加费 Bunke

  • python3 pygame的发射子弹自编程序2021-04-11 19:31:43

    这是主程序1.py #1.py主程序 import sys import pygame from settings import Settings from ship import Ship from gamefunctions import update_screen from bullet import Bullet from gamefunctions import check_events from pygame.sprite import Group def run_game():

  • [LeetCode] 1011. Capacity To Ship Packages Within D Days 在D天内送达包裹的能力2021-01-30 10:35:56

    A conveyor belt has packages that must be shipped from one port to another within D days. The ith package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We

  • 编程题:Titanic(地球上两地距离)2021-01-22 20:57:18

    It is a historical fact that during the legendary voyage of “Titanic” the wireless telegraph machine had delivered 6 warnings about the danger of icebergs. Each of the telegraph messages described the point where an iceberg had been noticed. The first

  • Python从入门到实践项目——外星人入侵游戏2021-01-22 19:59:49

    Alien_invasion-Game 用 Python 编写的外星人入侵小游戏来源 《Python编程 从入门到实践》项目1 外星人入侵 操作方法 按左右键移动飞船按空格键射击按Q键退出 附上代码 主程序 import sys import pygame from setting import Settings from ship import Ship from alien

  • Python编程到入门实践_练习14-4历史最高分2021-01-06 18:29:06

    第一次发博, 纪念"外星人入侵"游戏完结. 练习14-4"历史最高分"的练习: 游戏最高分不被重置 这里需要新建一个"high_score.txt"文件, 每次开始游戏循环前都在这个文件读取最高分. 一开始我建了个空文件,一直出错, 后来发现需要在此文件内设个初始值: 0 #alien_invasion.py imp

  • Python项目实践之二:外星人(2)2021-01-05 13:29:59

    Python项目实践之二:外星人 接着上篇文章继续写。。。 一、射杀外星人 我们创建了飞船和外星人群,但子弹击中外星人时,将穿过外星人,因为我们还没有检查碰撞。在游戏编程中,碰撞指的是游戏元素重叠在一起。要让子弹能够击落外星人,我们将使用sprite.groupcollide() 检测两个编组的

  • Python项目实践之一:武装飞船2021-01-02 20:01:06

    Python项目实践之一:武装飞船 一、规划项目 1、游戏规则设定 在游戏《外星人入侵》中,玩家控制着一艘最初出现在屏幕底部中央的飞船。玩家可以使用箭头键左右移动飞船,还可使用空格键进行射击。游戏开始时,一群外星人出现在天空中,他们在屏幕中向下移动。玩家的任务是射杀这些外星

  • leetcode 1011. 在 D 天内送达包裹的能力2020-12-21 18:33:36

    二分法 class Solution { public: int shipWithinDays(vector<int>& weights, int D) { int left = 0,right = 25000000; int n = weights.size(); while(left<right) { int ship = (left+right)/2; int tmp =

  • 《Python编程:从入门到实践》外星人入侵项目课后练习12-52020-12-03 21:02:44

    最近在看 《python编程:从入门到实践》,书中的项目实践部分有一些课后练习,为了巩固自己学的东西,我选择了一些自己感兴趣的习题进行编程,目前只看到项目1部分,项目2还没开始,以后继续更新代码,因为自己是新手,欢迎大家对我编码过程中的不足和错误进行指正。 12-5:侧面射击 这个题目所

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有