import pygame pygame.init() screen = pygame.display.set_mode((960, 800)) pygame.display.set_caption("pygame.sprite.Group") class sprite(pygame.sprite. ...
分类:
其他好文 时间:
2020-07-07 13:29:49
阅读次数:
76
{ "coord": { "lon": -0.13, "lat": 51.51 }, "weather": [ { "id": 300, "main": "Drizzle", "description": "light intensity drizzle", "icon": "09d" } ], " ...
分类:
Web程序 时间:
2020-07-07 13:16:02
阅读次数:
101
创建Zip文件。zip –r myzipfile.zip ./folder_to_zip解压Zip文件。unzip myzipfile.zip –d /tmp--------------创建Tar文件。tar -cvf /tmp/b.tar /tmp/tozip解压Tar文件。tar -xvf my... ...
分类:
系统相关 时间:
2020-07-07 13:04:19
阅读次数:
77
今天又一次看到群里有人讨论这个问题,有人说是因为最开始国外程序员使用 for item in sth: pass item 表示变量,所以都沿用了i 我去Google查了查资料,发现并不是item的原因 在 Stack Overflow中看到一个回答: 意思为 i,j这种命名方式起源于数学,数学中的 ...
分类:
其他好文 时间:
2020-07-07 12:55:48
阅读次数:
93
一、进程理解: 1、系统进行资源分配和调度的基本单位,一个具有一定独立功能的程序关于某个数据集合的一次运行活动; 2、它是一个动态的概念,一个活动的实体; 狭义定义:an instance of a computer program that is being executed 即正在运行的程序的实 ...
分类:
系统相关 时间:
2020-07-07 11:34:24
阅读次数:
105
进程的概念: 进程是一个实体。每一个进程都有它自己的地址空间,一般情况下,包括文本区域(text region)、数据区域(data region)和堆栈(stack region)。文本区域存储处理器执行的代码;数据区域存储变量和进程执行期间使用的动态分配的内存;堆栈区域存储着活动过程调用的指令和 ...
分类:
编程语言 时间:
2020-07-07 09:54:10
阅读次数:
59
使用MAC开发时,必须获得管理员权限 https://blog.csdn.net/rui9999999/article/details/87618898 打开finder(访问) command + shift +G 可以输入路径访问文件 permission denied access 路径 没有 ...
分类:
系统相关 时间:
2020-07-07 09:38:54
阅读次数:
67
一、选择排序介绍 1、基本介绍 选择式排序也属于内部排序法,是从欲排序的数据中,按指定的规则选出某一元素,再依规定交换位置后达到排序的目的。 2、选择排序思想 选择排序(select sorting)也是一种简单的排序方法。它的基本思想是: 第一次从arr[0]~arr[n-1]中选取最小值,与ar ...
分类:
编程语言 时间:
2020-07-06 20:22:09
阅读次数:
72
1、使用mysqld_safe命令 systemctl stop mariadb # 停止mariadb数据库 mysqld_safe --skip-grant-table & # 进入单机模式 mysql -uroot # 回车,进入数据库 use mysql; # 进入mysql库 update ...
分类:
数据库 时间:
2020-07-06 19:55:28
阅读次数:
67
import java.util.*; public class Main { static List<String> res; static Stack<Integer> stk; static void dfs(int[] a, int n, int u, String path, int ti ...
分类:
其他好文 时间:
2020-07-06 19:50:26
阅读次数:
88