please help me!!

D

danissim

help!!
hi people
could you to tell me how can i execute a program after i wrote the code???
thanks!
 
P

Peter Hansen

danissim said:
help!!
hi people
could you to tell me how can i execute a program after i wrote the code???

If you program is saved in a file named "mycode.py", you would execute the
following command at a command prompt: "python mycode.py"

This will work only if your computer is properly configured. You need
the folder containing the Python executable (e.g. python.exe on Windows)
to be in your PATH environment variable, for example.

You haven't included enough information for anyone to help more. What
platform/operating system are you using. How do you write your code?
Using an IDE, such as IDLE or PythonWin, or using another text editor?
Have you installed Python yet?

Also, have you done the online tutorial yet? It gives useful background
that might help you out.

See http://www.python.org/doc/current/tut/tut.html

-Peter
 
D

danissim

thanks a lot !
i have win xp
and i've installed python 2.3
this is my first work with python
i must to do somthing that rename the files into a folder
for example in to a folder "work" i have the files "asd.jpg" "dsa.jpg" and
"esd.jpg"
now i must to rename the pictures to "workF.jpg""workR.jpg""workD.jpg"

sorry but i'm a virgin with python...
 
W

Werner Schiendl

Hi,
i must to do somthing that rename the files into a folder
for example in to a folder "work" i have the files "asd.jpg" "dsa.jpg" and
"esd.jpg"
now i must to rename the pictures to "workF.jpg""workR.jpg""workD.jpg"

to rename files, you'll want to use the function rename from module os.

e. g.

I cannot see any rule for your renaming from your example, though


hth
Werner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

I dont get this. Please help me!! 2
Menu issues - please help me 0
Please, help me. 1
Please help me!!! 3
Please help 7
Help me, going live with a quiz 0
Please help 1
Html validation help, please 5

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,918
Members
47,458
Latest member
Chris#

Latest Threads

Top