AW: [Python-de] Betriebssystem in Python abzufragen
Fritz Cizmaorv
fritz at sol.at
Thu Aug 8 17:06:44 EDT 2002
Josef Cihal schrieb:
> Funtkioniert leider bei mir net.
> Python Version (1.5.2)
>
> os.name()
>
>
> danke
>
> jc
>
> -----Ursprüngliche Nachricht-----
> Von: python-de-admin at python.net [mailto:python-de-admin at python.net]Im
> Auftrag von Björn Platzen
> Gesendet: Donnerstag, 8. August 2002 15:35
> An: python-de at python.net
> Betreff: Re: [Python-de] Betriebssystem in Python abzufragen
>
>
> Hallo Josef
>
>
>>Wie bekomme ich eine Information ueber Betribssystem?
>>
>>(unix, win32, etc.)
>
> Wenn Du nur den Namen brauchst:
>
> import os
>
> mySys = os.name()
> print "Betriebssystem: ", mySys
>
> hth,
>
> Björn
>
Hallo Josef,
ohne () also
mySys = os.name
print "Betriebssystem: ", mySys
Gruß
Fritz
More information about the Python-de
mailing list