PI. sys.argv example

Run Settings
LanguagePython
Language Version
Run Command
import sys # The very first step, we're printing incoming arguments to see how do we obtain them print "System arguments: {argv}".format(argv=str(sys.argv)) # Now we're going to just show the content of specified file. To change the input # file go into config tab (on the right, next to "main.py" and change the argument # to get another result. if len(sys.argv) < 2: raise IOError("Not enough arguments") with open(sys.argv[1]) as f: print f.read()
I woke up and he was screaming. I'd left him dreaming. I roll over and shake him tightly, and whisper "If they want you, then they're gonna have to fight me," (Oh, fight me) I woke up on a bench on Shepherd's Bush Green Oh a candle at my chest, and a hand on his knee. I got up it was dark there's no-one in this park at this hour, How do I keep finding myself here? Oh, fight me. If I look back and he is screaming, I'd left him dreaming, the dangers fade, I'll run back and shake him tightly And scream "if they want him, then they're gonna have to fight me!" (Oh, fight me). But if I wake up on a bench on Shepherd's Bush Green Oh, a candle at my chest, and a hand on his knee. I'll roll over and hold him tightly, and scream "If you want him, well you're gonna have to fight me!" (Oh, fight me). Don't; fight me.
She's a very kinky girl The kind you don't take home to mother She will never let your spirits down Once you get her off the street, oh girl She likes the boys in the band She says that I'm her all-time favorite When I make my move to her room it's the right time She's never hard to please, oh no That girl is pretty wild now (The girl's a super freak) The kind of girl you read about (In New Wave Magazine) That girl is pretty kinky (The girl's a super freak) I really love to taste her (Every time we meet) She's all right, she's all right That girl's all right with me Yeah Hey hey hey hey! She's a super freak, super freak She's super-freaky, oh Everybody sing Super freak, super freak She's a very special girl (The kind of girl you want to know) From her head down to her toenails (Down to her feet, yeah) And she'll wait for me at backstage With her girlfriends in a limousine (Going back in Chinatown) Three's not a crowd to her, she says "Room 714, I'll be waiting" When I get there she's got incense, wine and candles It's such a freaky scene That girl is pretty kinky (The girl's a super freak) The kind of girl you read about (In New Wave Magazine) That girl is pretty wild now (The girl's a super freak) I really love to taste her (Every time we meet) She's all right, she's all right That girl's all right with me Yeah Hey hey hey hey! She's a super freak, super freak She's super-freaky, oh Temptations sing (Oooooh) Super freak, super freak That girl's a super freak (Oooooh) She's a very kinky girl The kind you won't take home to mother And she will never let your spirits down Once you get her off the street Blow, Danny!
Editor Settings
Theme
Key bindings
Full width
Lines