Sure, you could use _ as a throw-away variable in a Python for-loop. Yeah, you could definitely do that... like everyone else. Or you could just do this: >>> a = [ (0, 'Hello'), (1, 'Satan') ] >>> for {}[()], x in a: ... print(x) ... Hello Satan >>> Be different.
-
-
>>> a = [(0, 'Hello'), (1, 'Satan')] >>> for (lambda:()).foldl,x in a: ... print(x) ... Hello Satan >>>
Prikaži ovu nit -
Novi razgovor -
-
-
You can even bring up the ghosts of the olden Obfuscated C Code Contests: >>> for ['>']['>'>'>'], x in a: ... print(x) ... Hello Satan
- Kraj razgovora
Novi razgovor -
-
-
Explicit is better than implicit. use: >>> for input.__self__.__ignore__, x in a: ... print(x) ... Hello Satan to ignore all those pesky self provided inputs. Inputs provided by others can't be ignored unfortunately, it's an input injection vulnerability.
-
Good lord. What kind of lvalue is THAT?!?!?
Kraj razgovora
Novi razgovor -
-
-
What sorcery is this?!
-
Python.
Kraj razgovora
Novi razgovor -
-
-
Ok that is a great ascii art lvalue. I'm going to enjoy the one eared monster staring at me from the stack overflow swamp
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
At this point that is the boss monster from Cave Story.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.