会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东宫得臣
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
2020年4月22日
记一次python3.8.2的安装
摘要: 在操作系统为Redhat 7.4的服务器上的一次Python 3.8.2的安装 1)首先搞明白操作系统自带的python的安装路径:whereis python,可以看到初始的路径在/usr/bin/python。 cd /usr/bin; ll | grep python,python作为符号链接
阅读全文
posted @ 2020-04-22 13:57 东宫得臣
阅读(1601)
评论(0)
推荐(0)
2020年4月20日
Pandas读取表格数据进行处理
摘要: import pandas as pd df_policy = pd.read_excel('e:\policy.xlsx') df_sh01 = pd.read_csv('e:\sh01.csv', encoding='gbk') list_not = [] set_found = set() f
阅读全文
posted @ 2020-04-20 14:48 东宫得臣
阅读(2143)
评论(0)
推荐(0)
转发Python中format的用法
摘要: 转发自pyformat.info 详细讲述了Python format的新旧用法
阅读全文
posted @ 2020-04-20 13:11 东宫得臣
阅读(167)
评论(0)
推荐(0)
2020年4月16日
正则表达式匹配出现0次或一次
摘要: There are two more repeating qualifiers. The question mark character, ?, matches either once or zero times;you can think of it as marking something as
阅读全文
posted @ 2020-04-16 10:07 东宫得臣
阅读(4475)
评论(0)
推荐(0)
2020年4月14日
Flask处理请求前端数据
摘要: 转发自processing-incoming-request-data-in-flask,文章讲得特别详细 from flask import Flask, request app = Flask(__name__) @app.route('/form-example', methods=['GET
阅读全文
posted @ 2020-04-14 20:18 东宫得臣
阅读(722)
评论(0)
推荐(0)
2019年12月10日
遍历dataframe
摘要: import pandas as pd import os if __name__ == '__main__': Folder_Path = 'c:\checklog' os.chdir(Folder_Path) file_list = os.listdir() writer = pd.ExcelW
阅读全文
posted @ 2019-12-10 14:44 东宫得臣
阅读(1497)
评论(0)
推荐(0)
2019年11月27日
输入一个字符串,求出该字符串包含的字符集合
摘要: #include <iostream> #include <algorithm> #include <string> #include <vector> int main() { std::string str; while(std::cin>>str) { std::vector<char> v_
阅读全文
posted @ 2019-11-27 13:58 东宫得臣
阅读(815)
评论(0)
推荐(0)
查找用户信息
摘要: #!/bin/bash cat iplist | while read ip username do printf "${ip}, ${username}, " eval $(ssh -q ${ip} "awk -v user_name=$username -F':' '\$0 ~ user_nam
阅读全文
posted @ 2019-11-27 13:14 东宫得臣
阅读(268)
评论(0)
推荐(0)
2019年11月26日
批量更改用户口令
摘要: prochapawd.sh #!/usr/bin/expect set timeout 5 set ipaddress [lindex $argv 0] set username [lindex $argv 1] set newpassword [lindex $argv 2] spawn ssh
阅读全文
posted @ 2019-11-26 17:56 东宫得臣
阅读(220)
评论(0)
推荐(0)
利用ansible进行主机信息收集
摘要: - hosts: myjob gather_facts: True vars: IP: "{{ ansible_default_ipv4['address'] }}" HOST_NAME: "{{ ansible_hostname }}" OS: "{{ ansible_distribution }
阅读全文
posted @ 2019-11-26 15:32 东宫得臣
阅读(2578)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页