|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Several questions
What is argv[] for, I saw it alot on Python's program
FTP Question(s): Let say if i want to retrieve an HTML file from server, I need to use retrlines commant then write to file, right?? -- How to upload a file to FTP server?? -- How to retrive or send binary file to a server?? Thank You. |
|
#2
|
|||
|
|||
|
Quote:
Code:
import sys print sys.argv It is a list which contains the command line parameters passed to the program. If you start your script with c:\> python myprog.py -v something blah Then sys.argv will be; ['myprog.py', '-v', 'something', 'blah'] As to the FTP questions, I haven't used it myself, but for the binary files look at ftp.storbinary and ftp.retrbinary in the ftplib module - http://docs.python.org/lib/module-ftplib.html |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Several questions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|