Linux权限管理详解1、Linux 的基本权限:(1)Linux的基本权限说明-rw-r--r-- 1 root root 08-11 01:45 aa.txt权限位是十位第一位:代表文件类型- 普通文件d 目录文件l 链接文件b 块设备文件c 字符设备文件s &n
分类:
系统相关 时间:
2017-12-02 21:06:51
阅读次数:
184
#include <sys/stat.h> #include <stdio.h> int _tmain(int argc, _TCHAR* argv[]){char* fileName = "D:\\aa.txt"; struct _stat buf; int result; result = _s ...
分类:
编程语言 时间:
2017-12-02 11:21:01
阅读次数:
169
【题目】E. Present for Vitalik the Philatelist 【题意】给定n个数字,定义一种合法方案为选择一个数字Aa,选择另外一些数字Abi,满足?gcd(Aa,Abi)=1,且gcd(Ab1...Abx)≠1,求方案数取模1e9+7。2<=n<=5*10^5,2<=ai< ...
分类:
其他好文 时间:
2017-12-01 22:15:41
阅读次数:
264
a = 'ABC'b = aa = 'XYZ'print(b) 结果为'ABC' 解释看url:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431658624177ea4 ...
分类:
其他好文 时间:
2017-11-30 21:44:59
阅读次数:
89
题目:求s=a+ aa + aaa +…+ a..a(n个a) 两种方案: 以及 求1!+2!+…+n! ...
分类:
编程语言 时间:
2017-11-29 18:18:11
阅读次数:
174
#include<iostream> using namespace std ;int main (){int n,a, i,s,t;cout<<"请输入a,n"<<endl;cin>>a>>n;s=0;t=a;for(i=1;i<=n;i++){s+=t;t=t*10+a;}cout<<"s=a+ ...
分类:
其他好文 时间:
2017-11-28 01:34:26
阅读次数:
120
PHP基础语法 【变量,常量】 严格区分大小写,但内置结构或关键字无所谓(echo) 命名:不能以数字,空格,.来开头,但是可以有汉字,eg:$变量="aa"; 可变变量:$a='aa';$$a="bb";则 $aa="bb"; 引用赋值:$a="aa"; $b=&$a; 则改变$a的值,$b也变化 ...
分类:
Web程序 时间:
2017-11-27 12:44:36
阅读次数:
196
创建用户后登陆失败的原因是存在匿名用户: root@controller:~# mysql -h localhost -uaa -ppassword ERROR 1045 (28000): Access denied for user 'aa'@'localhost' (using password ...
分类:
数据库 时间:
2017-11-26 19:32:00
阅读次数:
185
首先ftp配置应为虚拟用户登录模式 用户密码文本目录为/etc/vsftpd/vftpuser,代码如下: 运行此脚本 #sh useradd.sh aa bb 就会完成添加ftp虚拟用户,用户名为aa,密码为bb。 ...
分类:
系统相关 时间:
2017-11-23 19:36:32
阅读次数:
265
/** * 线程的状态分析 * @author aa * */ public class ThreadState { public static void main(String[] args) throws Exception { /** * 新建线程,线程为新建状态 * jdk:至今尚未启动的线... ...
分类:
编程语言 时间:
2017-11-20 17:41:47
阅读次数:
138