<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <script type="text/javascript"> var owe=prompt("计算第一个值",""); var oee=prom ...
分类:
Web程序 时间:
2020-06-10 13:02:34
阅读次数:
65
1.分析 最近心血来潮,突然想写一个2048小游戏。于是搜索了一个在线2048玩玩,熟悉熟悉规则。 只谈核心规则:(以左移为例) 1.1合并 以行为单位,忽略0位,每列依次向左进行合并,且每列只能合并一次。被合并列置0。 1.2移动 每列依次向左往0位上移动,不限次数。 1.3判定 [成功]就是合并 ...
文件夹数据库处理逻辑 public class DbFolder { JSONObject root; public DbFolder() { this.root = new JSONObject(); this.root.put("f_id", ""); this.root.put("f_name ...
分类:
Web程序 时间:
2020-06-10 12:43:59
阅读次数:
79
1. 强制不换行 div{ white-space:nowrap; } 2. 自动换行 div{ word-wrap: break-word; word-break: normal; } 3. 强制英文单词断行 div{ word-break:break-all; } ...
分类:
Web程序 时间:
2020-06-10 11:03:26
阅读次数:
103
流程控制的基本元素:操作框、流程线、文字说明程序设计的基本结构:1)顺序结构2)选择结构选择语句(if...else...)有单支结构和分支结构分支语句(if...elif...else...)elif相当于else:if可意为“如果不是,那么如果”if的三元运算3)循环结构循环语句(for)循环语句(while)pass占位符编写代码时用它把结构定下来,不干扰其他代码continue用于for,
分类:
编程语言 时间:
2020-06-10 10:56:00
阅读次数:
81
在js里,如果要跳出for循环或者while循环的话,可以用continue或break 在jquery里,只有一个each循环,那么在each循环里,要跳出循环的话,可以用return true或return false。return false:将停止循环 (就像在普通的循环中使用 'break ...
分类:
Web程序 时间:
2020-06-10 09:38:58
阅读次数:
113
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;/*俄罗斯方块游戏题意:有n个数,从左 ...
分类:
其他好文 时间:
2020-06-09 20:18:52
阅读次数:
45
这场比赛的题都偏水,比赛的时候切了 A ~ E A Matrix Game 刚开始看错题了,以为是不能相邻,然后就不会了. 又读了一遍题,发现不能同行或同列,那就判断一下奇偶性就行了. code: #include <bits/stdc++.h> #define ll long long #defi ...
分类:
其他好文 时间:
2020-06-09 16:36:17
阅读次数:
59
常用算法合集(一) 查找算法 顺序查找 #include <iostream> using namespace std; int SeqSearch2(int r[], int n, int k) { int i=n; r[0]=k; while(r[i]!=k) i--; return i; } ...
分类:
编程语言 时间:
2020-06-08 18:50:59
阅读次数:
56
##准备 VOC标签转换参见这篇, 注意:object_name = name_dict[box[4]] 改为 object_name = name_dict[box[5]]。为了与detectron2统一, 标签文件夹命名为Annotations,图片文件夹命名为JPEGImages,train. ...
分类:
其他好文 时间:
2020-06-08 16:12:50
阅读次数:
124