To run a script from the python shell or the python prompt, use the command
>> execfile('filename.py')
To clear the screen, do the following,
>>import os
>>os.system("clear")
These are for systems running Ubuntu. Not sure if this will work for other operating systems.
>> execfile('filename.py')
To clear the screen, do the following,
>>import os
>>os.system("clear")
These are for systems running Ubuntu. Not sure if this will work for other operating systems.
No comments:
Post a Comment