su:Swith user 切换用户,切换到root用户cat: Concatenate 串联uname: Unix name 系统名称df: Disk free 空余硬盘du: Disk usage 硬盘使用率chown: Change owner 改变所有者chgrp: Change group ...
分类:
系统相关 时间:
2016-10-21 16:33:29
阅读次数:
284
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1115 题意:给出一些点,求这些点围成的多边形的重心; 思路: 方法1:直接分别求所有点的x坐标的平均值和y坐标的平均值,即答案;不过这个方法的计算精度不是很高,要求高精度时用另一个方法; 方法2: 用公 ...
分类:
其他好文 时间:
2016-10-21 13:54:34
阅读次数:
199
https://github.com/sindresorhus/cat-names 一个非常简单的nodejs项目,用来方便的获取猫猫的名字; 安装: npm install --save cat-names 用法: const catNames = require('cat-names'); // ...
分类:
Web程序 时间:
2016-10-21 00:58:03
阅读次数:
200
devstack has shortened names for a number of services, e.g. g-api = glance api g-reg = glance registry n-api = nova api n-crt = nova certificate n-obj ...
分类:
其他好文 时间:
2016-10-17 22:59:49
阅读次数:
175
本节内容 列表、元组操作 字符串操作 字典操作 集合操作 文件操作 字符编码与转码 1. 列表、元组操作 列表是我们最以后最常用的数据类型之一,通过列表可以对数据实现最方便的存储、修改等操作 定义列表 1 names = ['Alex',"Tenglan",'Eric'] 通过下标访问列表中的元素, ...
分类:
编程语言 时间:
2016-10-14 16:59:04
阅读次数:
325
1、Linux下MySQL安装完后是默认:区分表名的大小写,不区分列名的大小写;2、用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加添加lower_case_table_names=1,重启MYSQL服务,这时已设置成功:不区分表名的大小写;lower_case_table ...
分类:
数据库 时间:
2016-10-13 11:57:28
阅读次数:
198
mysql> use dbl Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A 登录时出现... ...
分类:
数据库 时间:
2016-10-10 13:51:39
阅读次数:
166
一直存在很多技术上的争论,其中最为妙的恐怕就是web地址应该叫什么的问题。通常情况就是这样:有人把地址栏的内容叫“URL”,这时候有些人就来劲了:“不!其实那就是URI。。。” “URI可以分为URL,URN或同时具备locators 和names特性的一个东西。URN作用就好像一个人的名字,URL ...
分类:
Web程序 时间:
2016-10-10 01:11:17
阅读次数:
147
resolver [r?'z?lv?] 解析器 ViewResolver The ViewResolver provides a mapping between view names and actual views. {view names : actual views} 举例1: 在 Contr ...
分类:
其他好文 时间:
2016-10-09 17:24:31
阅读次数:
190
Description You are given names of two days of the week. Please, determine whether it is possible that during some non-leap year the first day of some ...
分类:
其他好文 时间:
2016-10-09 06:52:28
阅读次数:
180