Python收集linux主机信息,需要安装dmidecode命令,yum -y install dmidecode#!/usr/bin/env python # coding=utf-8 from subprocess import Popen, PIPE #获取ifconfig命令信息 def&n
通过python实现linux中的wc命令,学习python参数处理模块optparse
Python通过正则收集网卡IP与MAC地址#!/usr/bin/env python # coding=utf-8 import re from subprocess import Popen, PIPE def getIfconfig():  
利用django自带认证功能实现用户登录认证。views.py# Create your views here. from django.shortcuts import render_to_response,render,get_object_or_404 from django.http i
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号