Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Run python function in command line

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Jan 1, 2014 at 18:16 vote accept Kuba
Jan 1, 2014 at 18:15 comment added Kuba :) I reinstall py2exe and now it's working, thank a lot for your help!
Dec 31, 2013 at 18:48 comment added Kuba ok, your advice helped me, i set argv to 1 and 2 and now it's working (i had to fix input at if name == 'main': - before i tested it in myFunction() ) now if I run from command line python test.py 3 2 it works, but after compilation to exe it don't work, do I have mistake in the code, or compilation isn't good?
Dec 31, 2013 at 18:11 comment added user3072164 @user3149628 Your code still contains some of the errors mentioned. Also it is less clear to me now what you want. Please write down exactly what you typed where and what output you got.
Dec 31, 2013 at 18:06 comment added Kuba Sorry, my question wasn't clear, I edited it! I compiled program and run it in cmd by test 1 2 I used a = sys.argv[1] b = sys.argv[2] I get error IndexError: list index out of range Now I would like to just print a and b and after work with them
Dec 31, 2013 at 16:42 history edited user3072164 CC BY-SA 3.0
added 328 characters in body
Dec 31, 2013 at 16:32 history undeleted Community Bot
Dec 31, 2013 at 16:31 history edited user3072164 CC BY-SA 3.0
added 939 characters in body
Dec 31, 2013 at 16:22 history deleted Community Bot via Vote
Dec 31, 2013 at 16:22 history answered user3072164 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /