Re: [Tutor] String Problem

2015-07-06 Thread Cameron Simpson
On 06Jul2015 15:44, Crusier wrote: Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen(' http://www.hkex.com.hk/eng/ddp/Contract_Details.a

Re: [Tutor] String Problem

2015-07-06 Thread Mark Lawrence
On 06/07/2015 08:44, Crusier wrote: Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen(' http://www.hkex.com.hk/eng/ddp/Contract_Details.a

[Tutor] String Problem

2015-07-06 Thread Crusier
Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen(' http://www.hkex.com.hk/eng/ddp/Contract_Details.asp?PId=175') saveFile = open('HKEX.tx

Re: [Tutor] string problem

2009-01-25 Thread Eugene Perederey
What's a problem to split the string like >>>'166.43.234.43'.split('.') Maybe I misunderstand you problem... 2009/1/25 Manoj kumar : > > i was trying to write a script for a port scanner. i was able to get a > working scanner which can scan a given host. > > now i want to upgrade it to scan for a

[Tutor] string problem

2009-01-25 Thread Manoj kumar
  i was trying to write a script for a port scanner. i was able to get a working scanner which can scan a given host. now i want to upgrade it to scan for a given range of ip address. for example: starting ip:166.43.234.43 last ip:234.23.45.123 no problem i am facing is that i am really NOT ab