摘要: file->setting->Editor->File and Code Templates->Python Script 添加 #!/usr/bin/python3# -*- coding:utf-8 -*-__author__='$USER' 阅读全文
posted @ 2017-09-14 23:44 子雅陌曦 阅读(814) 评论(0) 推荐(0)
摘要: Linux环境下只有在机器20.200.254.18上ssh dataconv@20.200.31.23才能连接到23的机器,而且还需要输入密码(每次都需要输入地址,密码很烦),所以利用expect写了个脚本。 脚本如下: 其中第一行 /usr/bin/expect是表示expect的位置 spaw 阅读全文
posted @ 2017-09-12 17:44 子雅陌曦 阅读(390) 评论(0) 推荐(0)
摘要: 用户组 在linux中的每个用户必须属于一个组,不能独立于组外。在linux中每个文件有所有者、所在组、其它组的概念 - 所有者 - 所在组 - 其它组 - 改变用户所在的组 所有者 一般为文件的创建者,谁创建了该文件,就天然的成为该文件的所有者 用ls ‐ahl命令可以看到文件的所有者 也可以使用 阅读全文
posted @ 2017-09-12 17:18 子雅陌曦 阅读(188) 评论(0) 推荐(0)
摘要: momo@ubuntu:~/user/txt$ cat test.txt1 chen nihao2 chen hello3 li nimenhao4 he dajiahao5 li nimenhaomomo@ubuntu:~/user/txt$ sort -k2,2 -u test.txt1 che 阅读全文
posted @ 2017-09-12 11:23 子雅陌曦 阅读(3687) 评论(0) 推荐(0)
摘要: 1.查看所有用户: select * from dba_users; select * from all_users; select * from user_users; 2.查看用户或角色系统权限(直接赋值给用户或角色的系统权限): select * from dba_sys_privs; sel 阅读全文
posted @ 2017-09-12 09:58 子雅陌曦 阅读(336) 评论(0) 推荐(0)
摘要: for j in range(1,len(arr)): #从list第二个元素开始 key=arr[j] #储存将要进行插入排序的元素数值 index=j #储存将要进行插入排序的元素的索引 while index>0 and arr[index-1]>key: #执行插入排序的判断条件 arr[i 阅读全文
posted @ 2017-09-06 16:13 子雅陌曦 阅读(137) 评论(0) 推荐(0)