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.
I made sg "useful" with it: ᚐ = type('ᚐ',(object,),{'ᚐ':{},'__getattr__':lambda s,a:s.ᚐ[a],'__setattr__':lambda s,a,v:s.ᚐ.__setitem__(a,s.ᚐ[a]+v)if a in s.ᚐ else s.ᚐ.__setitem__(a,v)})() for ᚐ.i, ᚐ.s in [(600, 'sa'), (60, 'ta'), (6, 'n')]: pass print(ᚐ.i, ᚐ.s)
-
-
Non-minified source code athttps://gist.github.com/bmispelon/739f5baae2d0ead8aa8de52884405c95 …
-
On a more serious note, would you ever consider doing a course outside the US? Something closer to Europe for example? I'd be very interested in that!
- Još 5 drugih odgovora
Novi razgovor -
Č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.
He/Him
Il/Lui