473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

please help me!!

help!!
hi people
could you to tell me how can i execute a program after i wrote the code???
thanks!
Jul 18 '05 #1
3 1568
danissim wrote:

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
Jul 18 '05 #2
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...

"Peter Hansen" <pe***@engcorp.com> ha scritto nel messaggio
news:3F***************@engcorp.com...
danissim wrote:

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

Jul 18 '05 #3
Hi,

danissim wrote:
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.
import os
os.rename("old.jpg", "new.jpg")


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

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lodewijk van Haringhal | last post by:
I'am new with javascritping not with programming. Is there nobody who can help me with ths simple promblem? :) Please, please give me a hint. Please help me with this script. I have two lists in...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
2
by: Merdelus | last post by:
I'm a new visual basic learner, I need some help with this program below: create an application that either sums or averagethe rows or columns of a two dimensional array depending on user...
1
by: Dursun | last post by:
I need to call a subroutine (CreateNewDoc()) in FormA from within FormB based on the user action in FormB. Let FormA be an MDIForm and let FormB be its MDIChild form (during the creation of FormB,...
1
by: Steve | last post by:
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please...
21
by: salad | last post by:
Thanks for reading this post and wasting your time. I was thinking about writing about the PCDatasheet vs The Pussyfarts war. The pussyfarts, as near as I can tell, have little to offer this...
1
by: mtpandya | last post by:
hello i want to read variable value in .xml file so plz help me this is the code <method name="load"> <parameter name="aURI"/> <body><!]></body> </method>
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.