DevEdge
Diese Site durchsuchen
Navigation
Home
.htaccess
robots.txt
CSS
JavaScript
jQuery
jQuery UI
Perl
PHP
Python
Ruby
MySQL
Objective-C
Swift
Google Apps Script
Google Mail
Google Text & Tabellen
Google Custom Search Engine
Google Places API
Blogger
Zendesk
CodeIgniter
phpBB
Mac OS X
Tabellenkalkulation
Impressum
Google+
Python
>
Generator Expressions
Generator Expressions erzeugen keine Liste wie die List Comprehensions.
Beispiel #1
#!/usr/bin/env python
# -*- coding: utf8 -*-
print
"Content-type: text/plain\n\n"
g =
sum
( (x *
10
for
x
in
range
(
10
)) )
print
g
# Ausgabe: 450