上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: 在操作系统为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 东宫得臣 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 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 东宫得臣 阅读(2128) 评论(0) 推荐(0) 编辑
摘要: 转发自pyformat.info 详细讲述了Python format的新旧用法 阅读全文
posted @ 2020-04-20 13:11 东宫得臣 阅读(161) 评论(0) 推荐(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 东宫得臣 阅读(4399) 评论(0) 推荐(0) 编辑
摘要: 转发自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 东宫得臣 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 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 东宫得臣 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: #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 东宫得臣 阅读(792) 评论(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 东宫得臣 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 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 东宫得臣 阅读(208) 评论(0) 推荐(0) 编辑
摘要: - hosts: myjob gather_facts: True vars: IP: "{{ ansible_default_ipv4['address'] }}" HOST_NAME: "{{ ansible_hostname }}" OS: "{{ ansible_distribution } 阅读全文
posted @ 2019-11-26 15:32 东宫得臣 阅读(2503) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页