python
OSMeteor
微软MVP 全栈工程师
展开
-
python Upload Ftp
# -*- encoding: utf8 -*-import osimport sysimport ftplibsys.setdefaultencoding('gbk')XFER_FILE = 'FILE' _XFER_DIR = 'DIR' class FTPSync(object): def __init__(self): self.conn = ft原创 2016-03-10 11:00:10 · 956 阅读 · 0 评论 -
Python import List
import os,io,time,arg,ctime,sleep,stringimport subprocess,popen2,getopt,argparse,getpass,msvcrt,curses,rlcompleterimport hashlib,datetime,sys,csv,smtplib,robotparser,ConfigParser,netrcimport sqlite原创 2016-03-10 11:04:08 · 3324 阅读 · 0 评论 -
PythonDate Convert javascript Date
import timeimport subprocessimport datetime# "%mongdoBinExeDir%\mongodump.exe" -h pictureWorks/127.0.0.1:828,127.0.0.1:827 -u=PW_backup -p=PW_backup -d pictureAir -o "%mongdoBinDBDir%\%timestring原创 2016-12-21 17:09:07 · 779 阅读 · 0 评论 -
Python 连接FTP
# -*- encoding: utf8 -*-import osimport sysimport ftplib sys.setdefaultencoding('gbk')XFER_FILE = 'FILE' _XFER_DIR = 'DIR' class FTPSync(object): def __init__(self): self.conn = f原创 2016-12-22 11:24:58 · 2665 阅读 · 0 评论 -
Python 学习笔记
#!usr/bin/perlprint "Helllo world\n"; my $animal = "camel"; my $answer = 42;print $animal;print "The animal is $animal\n";print "The square of $answer is ", $answer * $answer, "\n";import os,io原创 2016-12-22 11:26:19 · 924 阅读 · 0 评论