当前位置:   article > 正文

Python import List_python literal list

python literal list
  1. import os,io,time,arg,ctime,sleep,string
  2. import subprocess,popen2,getopt,argparse,getpass,msvcrt,curses,rlcompleter
  3. import hashlib,datetime,sys,csv,smtplib,robotparser,ConfigParser,netrc
  4. import sqlite3,xdrlib,plistlib
  5. import tarfile
  6. import gzip
  7. import shutil
  8. import platform
  9. import getpass, poplib
  10. import socket,asyncore,asynchat,HTMLParser
  11. import importlib
  12. import gettext
  13. import multiprocessing
  14. # subprocess.call(["ssh","root@127.0.0.1"])
  15. print platform.machine()
  16. print platform.node()
  17. print platform.platform()
  18. print platform.processor
  19. print platform.python_build()
  20. print platform.python_implementation()
  21. print platform.python_version()
  22. # import os,subprocess,hashlib,datetime
  23. # import logging
  24. # import ftplib
  25. # ######ftp down
  26. # ftp = ftplib.FTP()
  27. # FTPIP= "127.0.0.1"
  28. # FTPPORT= 21
  29. # USERNAME= "tools"
  30. # USERPWD= "tools"
  31. # ftp.connect(FTPIP, FTPPORT)
  32. # ftp.login(USERNAME,USERPWD)
  33. # CURRTPATH= "/meteor"
  34. # ftp.cwd(CURRTPATH)
  35. # DownLocalFilename="PWTC_480x480.mp4"
  36. # f = open(DownLocalFilename, 'wb')
  37. # ftp.retrbinary('RETR ' +DownLocalFilename , f.write , 1024)
  38. # f.close()
  39. # ftp.close()
  40. # ###########ftp upload#######
  41. # pclocalfile=os.path.join(os.getcwd(),'PWTC_480x480_1.mp4')
  42. # print pclocalfile
  43. # ftpremotepath="~/meteor"
  44. # f = ftplib.FTP()
  45. # f.connect(FTPIP, FTPPORT)
  46. # f.login(USERNAME,USERPWD)
  47. # f.cwd(ftpremotepath)
  48. # fd=open(pclocalfile,'rb')
  49. # print os.path.basename(pclocalfile)
  50. # f.storbinary('STOR ' + os.path.basename(pclocalfile),fd)
  51. # fd.close()
  52. # f.quit
  53. # if(os.name=='nt'):
  54. # print "windows"
  55. # subprocess.call(["git","clone","http://127.0.0.1/meteor/BUZZimaging.git"])
  56. # elif(os.name=='posix'):
  57. # print "Linux/Unix"
  58. # else:
  59. # print "other system"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/162790
推荐阅读
相关标签
  

闽ICP备14008679号