Im having a problem. I may have posted before on help on this part of python but i still dont undertstand.I am sick of using a problem such as dr python or geany which when you execute the program a script is made along with the python script which alows it to execute. Well anyway i want to be able to use gedit and then execute the script.I have tryed adding these lines:
Which one should work?
Code:#!/usr/bin/python def main(): print "main" main()If this line of code worked then I would expect to just double click the python scripts and hope it runs in a terminal.Code:#!/usr/bin/python2.5 def main(): print "main" main()
How could i fix this?
thankyou
Mr.popo![]()



Adv Reply


Bookmarks