Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1340361
  • 博文数量: 243
  • 博客积分: 888
  • 博客等级: 准尉
  • 技术积分: 2955
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-05 14:33
个人简介

漫漫长路,其修远兮!

文章分类

全部博文(243)

文章存档

2017年(2)

2016年(22)

2015年(32)

2014年(57)

2013年(107)

2012年(23)

发布时间:2014-03-27 15:04:34

原文地址:http://blog.chinaunix.net/uid-20653538-id-3277663.html1.os模块  os模块包装了不同操作系统的通用接口,使用户在不同操作系统下,可以使用相同的函数接口,返回相同结构的结果。  os.name:返回当前操作系统名称('posix', 'nt', 'os2', 'mac', 'ce' or 'riscos')  os中定义了.........【阅读全文】

阅读(1522) | 评论(0) | 转发(0)

发布时间:2014-03-27 11:26:02

点击(此处)折叠或打开#!/usr/bin/python2.7# coding=utf-8import MySQLdbimport syshost = '127.0.0.1'user = 'xxx'pwd = 'xxxx' # to be modified.port = '3306'.........【阅读全文】

阅读(1003) | 评论(0) | 转发(0)

发布时间:2013-10-17 17:58:46

python获取ip地址代码:#!/usr/bin/python #conding:utf-8   import socket,fcntl,struct def get_ip_address(ifname):     s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)     return socket.inet_ntoa(fcntl.ioctl(         ......【阅读全文】

阅读(1467) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册