linux-l: Problem mit LILO und PYTHON Variablenumwandlung

Oliver Schoenherr oschoen at earth.cora-berlin.de
Di Okt 7 09:56:28 CEST 1997



On Mon, 6 Oct 1997, Peter J. Weyers wrote:

> On Thu, 2 Oct 1997, Fabian Walk wrote:
> 
> > Wie kann ich also nun die Elemente meiner Liste in einen Interger-Wert
> > umwandeln?
> Da gibt es eine Funktion fuer ... der Name ist mir entfallen.

im string module:

atoi(s[, base]) 

Convert string s to an integer in the given base. The string must 
consistof one or
       more digits, optionally preceded by a sign (`+' or `-'). The base
defaults to 10. If it
       is 0, a default base is chosen depending on the leading characters
of the string
       (after stripping the sign): `0x' or `0X' means 16, `0' means 8,
anything else means
       10. If base is 16, a leading `0x' or `0X' is always accepted.
(Note: for a more
       flexible interpretation of numeric literals, use the built-in
function eval().) 

by

> 
> Peter _______________
>  ----| Info, PGP-Key | -->  http://sugra.desy.de/user/weyers/home.html <--
>       ---------------
> 
> 





Mehr Informationen über die Mailingliste linux-l