Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > some questions

Reply
Thread Tools

some questions

 
 
Andreas Bauer
Guest
Posts: n/a
 
      07-14-2003
Hi,

I need some information on how to deal with strings which I have
divided by using split(). I'm new to python and don't know how to
handle these split up strings.
And I some one could recommend a good tutorial I would be very
glad. Can't hardly find any.

Thanks in advance.

Andreas
 
Reply With Quote
 
 
 
 
Andreas Bauer
Guest
Posts: n/a
 
      07-14-2003
Andreas Bauer wrote:

> Hi,
>
> I need some information on how to deal with strings which I have
> divided by using split(). I'm new to python and don't know how to
> handle these split up strings.
> And I some one could recommend a good tutorial I would be very
> glad. Can't hardly find any.
>
> Thanks in advance.
>
> Andreas


Could anybody tell me how to hide a varibale e.g. in a url
Example

for i in (0,5):
u = urllib.urlopen("http://www.versionxzy.com/page - here the variable e.g
page1,page2,page3...
-.html

thanks
Andi
 
Reply With Quote
 
 
 
 
Matt Gerrans
Guest
Posts: n/a
 
      07-14-2003
"Andreas Bauer" wrote:
> I need some information on how to deal with strings which I have
> divided by using split(). I'm new to python and don't know how to
> handle these split up strings.


Hmm, doesn't that kind of depend on what you want to do with them?

> And I some one could recommend a good tutorial I would be very
> glad.


Where have you already looked? Have you tried "Python tutorial" on google?
Have you tried Python.org? Python itself comes with a tutorial (maybe you
are unaware of this, or maybe you want another?).

> Can't hardly find any.


Was ist das? Can't or can? Or do you really mean "Can't hardly find
nothin'?"


 
Reply With Quote
 
Skip Montanaro
Guest
Posts: n/a
 
      07-14-2003

>> Have you tried Python.org? Python itself comes with a tutorial
>> (maybe you are unaware of this, or maybe you want another?).


Andreas> I know there is one. But I don't like it. Don't know what kind
Andreas> of tutorial I'm looking for. Just some hints would be enough.

Hint: http://www.python.org/doc/Newbies.html

Skip

 
Reply With Quote
 
Fredrik Lundh
Guest
Posts: n/a
 
      07-14-2003
Andreas Bauer wrote:

> Could anybody tell me how to hide a varibale e.g. in a url
> Example
>
> for i in (0,5):
> u = urllib.urlopen("http://www.versionxzy.com/page
> - here the variable e.g page1,page2,page3.html


here's one way to do it:

for i in range(1, 5):
u = urllib.urlopen("http://www.versionxzy.com/page%d.html" % i)

more here:

http://www.python.org/doc/current/tut/node9.html
http://www.python.org/doc/current/li...q-strings.html

(reading the entire tutorial won't hurt, of course)

</F>

<!-- (the eff-bot guide to) the python standard library (redux):
http://effbot.org/zone/librarybook-index.htm
-->




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I restrict that the some ID can only login once in the some time ad ASP .Net 2 08-12-2005 09:14 PM
Re: Questions....questions....questions Patrick Michael A+ Certification 0 06-16-2004 04:53 PM
Need some help for some perl homework.... Perl 0 02-25-2004 01:45 AM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
Some questions regarding 070-305 and hopefully some right answers. Needs correction... wink, wink ;-) Daniel Walzenbach MCSD 1 11-10-2003 12:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57