ICode9

精准搜索请尝试: 精确搜索
  • esp32 gpio 设置2022-09-06 02:02:21

    void vSetSSN(int value) { // GPIO_CS // gpio_set_direction(GPIO_CS, GPIO_MODE_INPUT); //写这个或下一个 // 1为高电平,0为低电平 // gpio_set_level(GPIO_CS, value); gpio_reset_pin(GPIO_CS); gpio_se

  • Flex布局2022-08-07 12:37:02

    Flex布局 2009年,W3C 提出了一种新的方案 Flex 布局,可以简便、完整、响应式地实现各种页面布局。目前,它已经得到了所有浏览器的支持,这意味着,现在就能很安全地使用这项功能。 父元素设置 .parent{ /* 旧版 */ display:-moz-box; /* 兼容 Firefox */ display:-webkit-bo

  • html+css实现文本从右向左2022-07-27 16:32:58

    一、css实现 eg: <html lang="zh-ch"> <head> <meta charset="utf-8" /> <title>test</title> <style> .test { width: 100px; height: 100px; } .lr-tb { direct

  • vue h5页面左右滑动组件2022-07-12 12:03:53

    <template> <div @touchstart="handelTouchStart" @touchend="handelTouchend" class="newbox"> <slot></slot> </div> </template> <script> export default { data() { return {

  • LeetCode289 生命游戏(模拟)2022-07-05 12:32:17

    LeetCode289 生命游戏 使用扩展标签保留更新之前的信息 这里原来是0,现在是1,标记为2;原来是1,现在是0,标记为-1。保留本轮更新之前的值 最后在遍历更新为0或1 class Solution: def gameOfLife(self, board: List[List[int]]) -> None: """ Do not return anything

  • Java实验——贪吃蛇小游戏2022-06-19 17:34:57

    一、项目简介 贪吃蛇能够被键盘wasd控制移动,小蛇每吃到一个食物,分数加1,撞到自己,则显示游戏结束。游戏可以被space键暂停继续。   二、功能架构图         三、功能详解   在600*600像素的方框中(蛇的主要移动范围),定义蛇移动一次以30*30的像素移动。  窗口的创建,单独创建一

  • [leetcode] 59. Spiral Matrix II2022-06-14 20:03:53

    题目 Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n = 3 Output: [[1,2,3],[8,9,4],[7,6,5]] Example 2: Input: n = 1 Output: [[1]] Constraints: 1 <= n <= 20 思路 初始化矩阵,随后遍历

  • 20213422实验四 python综合实验2022-05-30 23:35:14

    课程:《Python程序设计》班级: 2134姓名: 刘伟洁学号:20213422实验教师:王志强实验日期:2022年5月29日必修/选修: 公选课   一、实验要求 Python综合应用:爬虫、数据处理、可视化、机器学习、神经网络、游戏、网络安全等。课代表和各小组负责人收集作业(源代码、视频、综合实践报告) 注:在

  • 坐标轴变换2022-05-20 12:34:45

    Four coordinate systems are used in the computer graphics pipeline: object space, world space, camera space and image space• The object space is a domain where objects are modelled and assembled.• The world space is where objects are positioned and animat

  • 界面控件DevExpress WinForms HTML & CSS模板——轻松创建警报通知2022-05-11 09:33:03

    在最新的DevExpress WinForm版本中,开发者可以使用WinForm产品线(通过DevExpress AlertControl和ToastNotificationManager)创建两种类型的通知/警报,最近技术团队还推荐使用DevExpress ToastNotificationManager来显示原生 Windows 10+ 通知。 获取工具下载 - DevExpress v21.2 尽

  • 动画animation2022-05-10 16:33:02

    animation:动画名称 时间s;动画播放方式1.默认播放一次2.infinite循环播放动画方向animation-direction1.正序 animation-direction: normal;2.倒序 animation-direction: reverse;3.交替 animation-direction:alternate;4.反向交替animation-direction:alternate-reverse;

  • css3动画animation2022-05-09 20:04:14

    1.动画组成关键帧@keyframes,用于定义动画的每个状态①from...to..@keyframes 动画名称{ from{} to{}}②0% 10% 50%@keyframes 动画名称{ 0%{} 50%{} 100%{}} 调用动画animation:动画名称 时间s;动画播放方式1.默认播放一次2.infinite循环播放动画方向animation-direction1.正序 a

  • Godot学习笔记(3)—— GDScript(2)2022-05-02 15:00:08

    1. 处理玩家输入   1.1 使用 Input   Input使用简单,在处理输入信号的时候优先级高,适合处理玩家移动等动作。   Input函数每帧检查一次。   1.2 使用_unhandled_input()   _unhandled_input()将处理所有没有被处理过的输入信号,如果没有匹配的项目,信号将被丢弃。   因此

  • flex 弹性布局属性(重点!!)----------12022-04-26 16:33:00

    flex布局: 描述:flex是弹性布局  用来为盒子模型提供最大的应用以及最大的灵活,任何一个容器都可以指定flex布局 语法介绍:display:flex; 表示设置当前容器为弹性盒子,此时容器内部的float。clear,,,,,样式失效 引入两个名词:容器和项目 容器:添加了display:flex的元素 项目:容器中直接子元素

  • Cesium之屏蔽光照方向受时间的影响 - 莫小龙2022-04-08 01:01:38

    Cesium之屏蔽光照方向受时间的影响 原理: cesium的太阳光照方向受系统时间和时间轴的影响。 只需要新建一个光照(DirectionalLight)替代环境光即可。 代码: this.viewer.scene.light = new Cesium.DirectionalLight({ color:new Cesium.Color(1.0, 1.0, 1.0, 0.5),

  • Unity 脚本实现相机自由移动2022-04-07 09:31:06

    建立一个脚本名称为:Move(与脚本内命名空间一致) using System.Collections; using System.Collections.Generic; using UnityEngine; public class Move : MonoBehaviour { public Transform tourCamera; #region 相机移动参数 public float moveSpeed = 1.0f; p

  • 牛客华为机试HJ172022-04-02 21:33:36

    原题传送门 1. 问题描述 2. Solution 1、思路 注意条件过滤 2、实现 Java package huawei.HJ017; import java.io.IOException; import java.nio.file.Paths; import java.util.Scanner; import java.util.regex.Pattern; public class Main { static Scanner in; pub

  • CSS flex-direction 属性2022-03-19 09:05:13

    CSS flex-direction 属性 定义和用法 flex-direction 属性规定灵活项目的方向。 注意:如果元素不是弹性盒对象的元素,则 flex-direction 属性不起作用。 默认值: row 继承: 否 可动画化: 否。请参阅 可动画化(animatable)。 版本: CSS3 JavaScript 语法: object.style.flexDirection=

  • 4.TypeScript入门之TS常用类型(3)2022-02-26 09:04:15

    上一章节:3.TypeScript入门之TS常用类型(2) 3.13 枚举类型 枚举的功能类似于字面量类型+联合类型组合的功能,也可以表示一组明确的可选值。 枚举:定义一组命名常量。它描述一个值,该值可以是这些命名常量中的一个。 enum Direction { Up, Down, Left, Right } function changeDi

  • 如何用python写一个2048?2022-02-08 19:30:32

    用python写一个2048?你也可以! 这是我今天的学习过程中看到的 代码来源:《Python游戏设计案例实战》 过程很复杂啦,我把源码放在这,具体程序放在GitHub上,想要的点击这里 from msilib.schema import Directory from tkinter import * from tkinter import messagebox as msgbox imp

  • 【POJ】2488 A Knight‘s Journey2022-01-29 22:32:04

    因为需要输出完整的访问路径,因此采用DFS比较好,注意因为题目要求按照字典序输出,因此direction数组只能有一种构造方式: #include <iostream> #include <cstdio> #include <string> #include <cstring> using namespace std; int direction[8][2] = { {-1, -2}, {1,

  • 关于styleclip的踩坑(1)global direction中的fs3.npy的生成2022-01-27 15:03:26

    随心情填坑。 0.背景 因为公司项目有个需求需要用到styleclip,所以就去了解了一下。这项技术就是可以通过clip输入文字,对生成的图片产生一定影响,从而生成符合描述的图片,或者,描述为图像编辑,将一张苦瓜脸变为笑脸。我这边的项目需要将该项目改为对其他目标的编辑,不是脸,但是这里就不

  • vue---13flex-direction2022-01-26 17:04:33

    flex-direction容器属性: 01.简介: flex-direction属性决定主轴的方向(即项目的排列方向)。 .container { flex-direction: row | row-reverse | column | column-reverse; } bootstrap中简写:flex-row | flex-column row(默认值):主轴为水平方向,起点在左端。 row-reverse:主轴为水平

  • [Godot][GDScript] ThirdPersonController 第三人称 3C 的实现2022-01-23 13:33:18

    完整代码 https://github.com/CheapMiao/Godot-ThirdPersonController extends KinematicBody # ---对象属性--- # 移动速度 export var moveSpeed : float = 10 # 跳跃速度 export var jumpAcceleration : float = 200 # 下落加速度 export var fallAcceleration : float

  • Python贪吃蛇 代码2022-01-16 22:30:48

    #!/usr/bin/env python # -*- coding: utf-8 -*- import pygame as pygame import random import sys from pygame.rect import Rect class Snake(object): def init(self): # 定义3个 颜色属性,以防后面需

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

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

ICode9版权所有