Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > cz.comp.lang.python > #3219

Re: [python] Buducnost Pythonu: lambda, map, filter

Newsgroups cz.comp.lang.python
Date 2017-12-13 01:02 -0800
References <mailman.155.1163440992.6465.python@py.cz> <ejav0f$7re$1@news.vol.cz> <CANeQL52LSnza=Wg7pyEB0kzkOLfRUqY49z+5Fi+VWeQ0SLtWrw@mail.gmail.com> <mailman.41.1513083112.2736.python@py.cz>
Message-ID <013c3421-291d-48d1-ade6-5fff922dc88e@googlegroups.com> (permalink)
Subject Re: [python] Buducnost Pythonu: lambda, map, filter
From Pavel Schön <pavel@schon.cz>

Show all headers | View raw


Děkujeme za oživení 11 let starého vlákna, na tyto věci se prostě nesmí zapomenout... :-)

Dne úterý 12. prosince 2017 13:51:54 UTC+1 Petr Mach napsal(a):
> Dnes je ještě lepší toto:
> with open('data.txt') as f:
>     for line in f:
>         print line
> 
> 
> 
> Dne 31. 3. 2017 13:35 napsal uživatel "Petr Přikryl" <pri...@atlas.cz>:
> Roman Miklos napsal(a):
> 
> 
> Radsej by som naopak uvital keby sa preberalo stale viac, napriklad keby
> 
> bolo mozne namiesto
> 
> 
> 
> f = open("data.txt")
> 
> line = f.readline() while line:
> 
>   print line
> 
>   line = f.readline()
> 
> f.close()
> 
> 
> 
> napisat jednoducho ako v Perle a C++
> 
> 
> 
> f = open("data.txt")
> 
> while line = f.readline():
> 
>   print line f.close()
> 
> 
> 
> 
> Já raději píšu
> 
> 
> 
> f = open("data.txt")
> 
> for line in f:
> 
>     print line
> 
> f.close()
> 
> 
> 
> 
> 
> pepr
> 
> _______________________________________________
> 
> Python mailing list
> 
> pyt...@py.cz
> 
> http://www.py.cz/mailman/listinfo/python
> 
> 
> 
> Visit: http://www.py.cz

Back to cz.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Re: [python] Buducnost Pythonu: lambda, map, filter Pavel Schön <pavel@schon.cz> - 2017-12-13 01:02 -0800
  Re: [python] Buducnost Pythonu: lambda, map, filter Vláďa Macek <macek@sandbox.cz> - 2017-12-13 10:28 +0100

csiph-web