pygame 图像 / 图形绘制 1. pygame 的图像绘制 pygame 支持多种存储图像的方式(也就是图片格式),例如 JPEG、PNG 等,具体支持 JPEG (一般扩展名为 .jpg 或者 .jpeg ,数码相机、网上的图片基本上都是这种格式,这是一种有损压缩方式,尽管对图片的质量有所损 ...
分类:
其他好文 时间:
2020-07-03 21:05:31
阅读次数:
49
top top命令显示的cpu占用率是所有cpu占用率之和 执行top命令后,再按大键盘的1键,即可看到当前有多少cpu,每个cpu的占用率情况 cat /proc/cpuinfo 可查看cpu信息,有几个核等等 cpu占用率较高,如何降低cpu占用率,一般如果轮询太频繁,cpu占用率也就相应会比较 ...
分类:
其他好文 时间:
2020-07-03 19:17:55
阅读次数:
64
//放在body里面 t:formvalid 外面 <div class="datagrid-toolbar" hidden="hidden" style="float:left;width: 100%;"> <a href="#" class="easyui-linkbutton l-btn l- ...
分类:
其他好文 时间:
2020-07-03 17:08:05
阅读次数:
73
【网址:www.javayihao.top】【布局标签网址:https://www.cnblogs.com/ZSK991656110/p/4815506.html】【edittext:https://blog.csdn.net/wenzhi20102321/article/details/79477 ...
分类:
移动开发 时间:
2020-07-03 17:06:55
阅读次数:
64
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2020-07-03 15:34:00
阅读次数:
55
阅读目录 第一步 第二步 第三步 第四步 第五步 下载官网 http://www.sublimetext.com/ 中文模式(教程) 回到顶部 第一步 打开Sublime Text ,按shift+ctrl+p 弹出查找。 回到顶部 第二步 在输入框中输入install,回车键 回到顶部 第三步 在 ...
分类:
其他好文 时间:
2020-07-03 14:01:56
阅读次数:
191
dijkstra+堆优化: P4779 【模板】单源最 code: #include<bits/stdc++.h> using namespace std; const int N=3e5; int n,m; int s,x,y,w; int head[N]; int dis[N]; bool vi ...
分类:
其他好文 时间:
2020-07-03 12:11:33
阅读次数:
57
画两条边框,再旋转盒子45度 .box{ width: 7px; height: 7px; border-top: 2px solid red; border-right: 2px solid red; transform: rotate(45deg); } ...
分类:
Web程序 时间:
2020-07-03 01:05:55
阅读次数:
89
双栈实现getMin功能的问题 左程云的《程序员代码面试指南》,第一个题是“设计一个有getMin功能”的栈,思路如下: 用到了双栈: 一个栈(stackData)用来保存当前栈中的元素,其功能和正常的栈没有区别; 另外一个栈(stackMin)用来保存每一步的最小值; 2种方案思路就是下面这幅图所 ...
分类:
其他好文 时间:
2020-07-03 00:49:59
阅读次数:
54
背景 最近在很多JDK源码中都看到了Treiber stack这个单词。 比如CompletableFuture中的: volatile Completion stack; // Top of Treiber stack of dependent actions 比如FutureTask中的: /* ...
分类:
其他好文 时间:
2020-07-03 00:37:03
阅读次数:
81