- 博客(3)
- 收藏
- 关注
原创 linux基本功能
bash的基本功能命令别名 aliasalias 别名=‘原命令’ alias vi='vim'这里将cp复制的命令取名为copyok,可以看到命令是生效的,这个命令是临时生效的,开机启动就会消失,除非将它写入到配置文件中,让别名永久生效 vi /root/.bahsrc 等 配置文件。但是,请注意,虽然有别名,但是原命令依然生效alias 查询命令 这里可以查询到,...
2019-10-20 18:39:42 448
原创 mysql的操作基本命令大全,附源码和结果
--创建学生表mysql> create table t_student( id int auto_increment primary key, name varchar(10) not null, age int not null, sex varchar(10) );Query OK, 0 rows affected (0.04 sec)mysql> show t...
2019-03-18 22:11:57 135
原创 从输入的日期(如2008年12月12日)判断当前日期是当年的第几天
从输入的日期(如2008年12月12日)判断当前日期是当年的第几天 程序如下 1 r=0 #代表当年的第几天 2 year=int(input('please enter the year:')) 3 while True: 4 month=int(input('please enter the month:')) 5 if month<1 or...
2019-01-01 16:06:35 297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人