from __future__ import print_function # 导入相关python库 import os import numpy as np import pandas as pd #设定随机数种子 np.random.seed(36) #使用matplotlib库画图 impo ...
                            
                            
                                分类:
其他好文   时间:
2020-07-30 16:43:46   
                                阅读次数:
75
                             
                         
                    
                        
                            
                            
                                一需求分析:excel做公司内部资产记录如下:--但这样不方便 资产编号, ip, 主机名, 使用者, os, mem, cpu, 上架时间, 过保时间 所以开发web版,可以主机进行增,删,改,查 1.添加:方法如下 (1)人手工录入: ssh ip hostname cat /proc/cpui ...
                            
                            
                                分类:
其他好文   时间:
2020-07-30 01:47:37   
                                阅读次数:
123
                             
                         
                    
                        
                            
                            
                                1、编写脚本systeminfo.sh,显示当前主机系统信息,包括:主机名,IPv4地址,操作系统版本,内核版本,CPU型号,内存大小,硬盘大小#!/bin/bashecho-e"\e[31mHostname:`hostname`\e[0m"echo-e"\e[32mIP:`hostname-I`\e[0m"echo-e"\e[33mOSVersion:`cat/etc/os-release|gr
                            
                            
                                分类:
系统相关   时间:
2020-07-30 01:14:27   
                                阅读次数:
194
                             
                         
                    
                        
                            
                            
                                    import HTMLTestRunnerimport unittestimport os# 1. 完成使用discover()方法构造套件的方法 if __name__ == '__main__': current_path = os.path.dirname(__file__) testcase ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 21:58:58   
                                阅读次数:
107
                             
                         
                    
                        
                            
                            
                                import requests; import re; import os; import parsel; 1.请求网页 header = { "user-agent":'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537. ...
                            
                            
                                分类:
编程语言   时间:
2020-07-29 21:38:42   
                                阅读次数:
68
                             
                         
                    
                        
                            
                            
                                import concurrent import requests; from concurrent.futures import ThreadPoolExecutor import os; import parsel; def send_request(url): header = { "user ...
                            
                            
                                分类:
编程语言   时间:
2020-07-29 21:35:20   
                                阅读次数:
91
                             
                         
                    
                        
                            
                            
                                    Python3 之 OS模块详解: os.sep:取代操作系统特定的路径分隔符 os.name:指示你正在使用的工作平台。比如对于Windows,它是'nt',而对于Linux/Unix用户,它是'posix'。 os.getcwd:得到当前工作目录,即当前python脚本工作的目录路径。 os.g ...
                            
                            
                                分类:
编程语言   时间:
2020-07-29 21:31:22   
                                阅读次数:
77
                             
                         
                    
                        
                            
                            
                                    ############### 展示左侧菜单 ############### """ django自带后台admin的使用: 1,注册每个表, 2,创建超级管理员,用来登陆 3,登陆进去里面有user和group,这是django自带的, 4,你可以在user中,创建一个用户,然后登陆,是没有任何的 ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 21:19:33   
                                阅读次数:
73
                             
                         
                    
                        
                            
                            
                                第一章:Linux硬件基础 什么是系统 os 就是操作系统Windows Linux Mac Unix DOS 32位操作系统和64位操作系统有什么区别 1.设计定位不同2.安装要求不同3.运算能力不同4.寻址能力不同?32位:4G 3.5G64位:最大支持128G 什么是Linux? window ...
                            
                            
                                分类:
系统相关   时间:
2020-07-29 21:18:50   
                                阅读次数:
105
                             
                         
                    
                        
                            
                            
                                    # coding=utf-8 # This script is uesd to modify Agent IP at the first time of machine started. import requests import json import time import os import ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 17:54:47   
                                阅读次数:
80