- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
Wget is a very useful tool, however, I dont know how to use it in python. Below is my try but with no luck. Would you tell me the right way ? Thank you very much !! I made a wwget.py [CODE] #!/usr/bin/python import urllib2, urllib img=wget("http://blog.freetimegears.com.tw/patrick/archives/Maple-tree.jpg") [/CODE] Running in … | |
Looking for help : I run abc.py with normal output as I expect, but get error in abc.pyc. Below is what I have done. Would you tell me what I have mistaken ? Thank you very much !! abc.py #!/usr/bin/python import datetime test_time = open('test.time', 'w') test_time.write('oh, today is\n') test_time.close() … | |
I want to put the date and time into a file. Below is what I have tried. import time import datetime >>> test_time = open('test.time', 'w') >>> test_time.write('today is') >>> test_time.close() >>> test_time = open('test.time', 'a') >>> today = datetime.date.today() >>> print today 2008-03-09 >>> test_time.write(today) Traceback (most recent call … | |
I am a beginner and want to learn the method to run python script in linux system so that an application can automatically execute a job. For example, I want my ubuntu to do the cron job with a script to play a mp3 file by vlc player at 9pm … |
The End.