码迷,mamicode.com
首页 >  
搜索关键字:color    ( 180498个结果
迭代法 二叉树前序、中序、后序 遍历
前序 class Solution { public: vector<int> preorderTraversal(TreeNode* root) { vector<int> res; if (root == nullptr) { return res; } stack<TreeNode*> stk ...
分类:其他好文   时间:2021-01-01 12:36:16    阅读次数:0
查询优化点?
避免查询无关的列,如使用Select * 返回所有的列。 避免查询无关的行 切分查询。将一个对服务器压力较大的任务,分解到一个较长的时间中,并分多次执行。如要删除一万条数据,可以分10次执行,每次执行完成后暂停一段时间,再继续执行。过程中可以释放服务器资源给其他任务。 分解关联查询。将多表关联查询的 ...
分类:其他好文   时间:2021-01-01 12:04:23    阅读次数:0
Delphi image 等比例缩小
//等比例缩小 uses Math; var Zoom:Extended; W,H:integer; bmp:Tbitmap; begin bmp:=Tbitmap.Create; bmp.LoadFromFile('c:\aa.bmp'); Zoom:=Image1.Width/Max(bmp.W ...
分类:Windows程序   时间:2021-01-01 11:59:30    阅读次数:0
ntfs_file system
centos linux 对ntfs的支持,需要第三方软件源epel 使用阿里源 ,根据help进行配置 #wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo #yum install ntfs- ...
分类:Web程序   时间:2021-01-01 11:44:57    阅读次数:0
跨域过滤器配置
import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet ...
分类:其他好文   时间:2020-12-31 12:54:09    阅读次数:0
Python第二天
简简单单画个圣诞树 1 n = 50 2 from turtle import * 3 speed("fastest") 4 left(90) 5 forward(3*n) 6 # 顶部五角星略过 7 color("dark green") 8 backward(n*4.8) 9 def tree( ...
分类:编程语言   时间:2020-12-31 12:10:19    阅读次数:0
ext4和xfs文件系统的扩容和收缩
1. LVM逻辑卷管理 2. ext4文件系统 2.1 扩容CentOS6的根文件系统(ext4) 根文件系统在 /dev/VolGroup/lv_root 逻辑卷上,文件系统类型为ext4,大小为10G,现在要将其扩容成20G。 1)调整分区类型为8e # 调整分区类型为LVM,也就是8e类型 f ...
分类:其他好文   时间:2020-12-31 12:09:13    阅读次数:0
多进程
code import os from multiprocessing import Process def f(x): print('子进程id :',os.getpid(),'父进程id :',os.getppid()) return x*x if __name__ == '__main__': ...
分类:系统相关   时间:2020-12-31 12:06:57    阅读次数:0
阿里云Centos7 安装mysql5.7 报错:./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
在阿里云服务器Centos7中安装mysql5.7,解压数据库初始化后,报错 ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or di ...
分类:数据库   时间:2020-12-31 11:58:26    阅读次数:0
python中字符串的常用拼接
1、 + 号拼接 >>> test1 = "abcd" >>> test2 = "opqr" >>> test3 = "xyzh" >>> test1 + test2 'abcdopqr' >>> test2 + test3 'opqrxyzh' >>> test2 + test1 + test3 ...
分类:编程语言   时间:2020-12-31 11:56:50    阅读次数:0
180498条   上一页 1 ... 75 76 77 78 79 ... 18050 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!