[Python-de] cat in python

Hartmut Goebel h.goebel at goebel-consult.de
Fre Mar 31 09:19:35 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Jung schrieb:

> oder die 1-Zeiler Version:
>
> import glob; open('xxx.4gi','w').write(''.join([open(f).read() for f in
> glob.glob('*.4go')]))

Damit bekommst Du aber in Software-Design eine "6".

- --
Schönen Gruß - Regards
Hartmut Goebel

| Hartmut Goebel             | IT-Security -- effizient |
| h.goebel at goebel-consult.de | www.goebel-consult.de    |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iQEVAwUBRCzYB8zajR0mSa83AQIViAf+OraxuagJRG6XYifFt79MGDbo9u7lFyMG
JIwQTnjRTCzgcD7wDo9YBNlcMqzxAzGbQ4Qv3zeXB9xdczqnEN/VeyUWu5j9UDd6
9Ywgr24tkFEEJc6MlvA7W8uSxf5BjvuIMWF3u1/mOKYSgbykFTDxaqo5rWPfQNxC
6pT0Zh8YuyYhm6SUhdWjG53yl5EYT9ppQQr3XLF7sI6UO0YWsv8GJHd50PJM9Xm3
VvJ0A19DDTbTkrs3qWiMmZ8egndRfsj9TiNFrGlZDZkBYXQCG/asIypYUFaQuPrF
7H0ma1/onh/zqRttNCQzvXEhfBp9S1JJ+ZACY70qEJZqWPYB0uO/Jg==
=T+Lp
-----END PGP SIGNATURE-----