赞
踩
- import os,io,time,arg,ctime,sleep,string
- import subprocess,popen2,getopt,argparse,getpass,msvcrt,curses,rlcompleter
- import hashlib,datetime,sys,csv,smtplib,robotparser,ConfigParser,netrc
- import sqlite3,xdrlib,plistlib
- import tarfile
- import gzip
- import shutil
- import platform
- import getpass, poplib
- import socket,asyncore,asynchat,HTMLParser
- import importlib
- import gettext
- import multiprocessing
-
- # subprocess.call(["ssh","root@127.0.0.1"])
-
-
- print platform.machine()
- print platform.node()
- print platform.platform()
- print platform.processor
- print platform.python_build()
- print platform.python_implementation()
- print platform.python_version()
-
-
-
- # import os,subprocess,hashlib,datetime
- # import logging
- # import ftplib
- # ######ftp down
- # ftp = ftplib.FTP()
- # FTPIP= "127.0.0.1"
- # FTPPORT= 21
- # USERNAME= "tools"
- # USERPWD= "tools"
- # ftp.connect(FTPIP, FTPPORT)
- # ftp.login(USERNAME,USERPWD)
- # CURRTPATH= "/meteor"
- # ftp.cwd(CURRTPATH)
- # DownLocalFilename="PWTC_480x480.mp4"
- # f = open(DownLocalFilename, 'wb')
- # ftp.retrbinary('RETR ' +DownLocalFilename , f.write , 1024)
- # f.close()
- # ftp.close()
- # ###########ftp upload#######
- # pclocalfile=os.path.join(os.getcwd(),'PWTC_480x480_1.mp4')
- # print pclocalfile
- # ftpremotepath="~/meteor"
- # f = ftplib.FTP()
- # f.connect(FTPIP, FTPPORT)
- # f.login(USERNAME,USERPWD)
- # f.cwd(ftpremotepath)
- # fd=open(pclocalfile,'rb')
- # print os.path.basename(pclocalfile)
- # f.storbinary('STOR ' + os.path.basename(pclocalfile),fd)
- # fd.close()
- # f.quit
-
-
- # if(os.name=='nt'):
- # print "windows"
- # subprocess.call(["git","clone","http://127.0.0.1/meteor/BUZZimaging.git"])
- # elif(os.name=='posix'):
-
- # print "Linux/Unix"
-
-
- # else:
- # print "other system"
-
-
-
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。