|
| ||||||||||
| Tags: dll, programming language, python, python script |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Python Programming Beginner question
|
|
#2
| |||
| |||
| Re: Python Programming Beginner question
Answer for To be able to run the Python script What would you like to do: In Windows, Python is an open standard installer command associated with a certain file type extension already py (Python.File), to run the interpreter on the file type (D:. \ Program Files \ Python \ python.exe "% gives a 1 "% *). To be able to run the script as 'foo.py' from the command prompt, this is sufficient. If you want to run it just type 'foo' script without the extension, please add. Py environment variable PATHEXT. In Windows NT, by the above-mentioned step is performed by the installer, you will be able to run in 'foo.py' the script, due to a bug in many years, to the redirection of input or output in NT command processor, You can not use this method. This will be the often significant. Charm that allows you to run a Python script WinNT is that the extension cmd to a file, add the following statement in the first row.: Code: @ Setlocal enableextensions & python-x% ~ f0% * & goto: EOF |
|
#3
| |||
| |||
| Re: Python Programming Beginner question
It might take a long time to start the Python Why: There is a bug report usually Python will start very quickly in Windows, it began to take a long time to suddenly start Python from time to time. To further complicate matters, Python is a Windows system which configured just like any other software. This problem may be caused by mis-configured anti-virus software on your machine. In the virus scanner, which are available if you configured to monitor all read from the file system, can cause the startup very slow. so therefore Please ensure that you make sure the settings for virus scanning software on your system have been set up to properly. |
|
#4
| ||||
| ||||
| Re: Python Programming Beginner question
*. Pyd file the same as What is DLL? Yes,. Pyd file is the same as dll although there are some differences. if there were a DLL named foo.pyd, it must contain () initfoo function. Over the "import foo" with Python That way, Python is (foo.py and, foo.pyc) foo.pyd looking for, if any, will attempt to call the initialize () initfoo. Unlike to require the presence of a DLL is Windows, but does not link to foo.lib. Exe file. In addition, the path to search for foo.pyd is PYTHONPATH, may not be the same as the Windows path to search for foo.dll. In addition, when you link to dll the program requires a dll to run the program, foo.pyd is to run is not necessary. Of course, foo.pyd is required if you want to import foo. In the DLL, the link will be declared by the (dllexport) __declspec in the source code. . In pyd, is defined by a list of link function is usable. |
|
#5
| |||
| |||
| Re: Python Programming Beginner question
Python program to run on Windows What would you like to do? This may not be a simple problem. If you are accustomed to operate the program from the Windows command line already, but all you can see immediately, you need a little information otherwise. Windows 95,98, there is a difference also between the, 2000, XP NT, ME, has become a source of confusion. Unless you are using an integrated development environment of some kind you, you will want to type in what is called in various ways and eventually "DOS window" Windows command "command prompt window." Typically, such a window can be issued from the Start menu. Menu choice is Start ‣ Programs ‣ Accessories ‣ Command Prompt in Windows 2000. Such that the window is open, you'll see from that there is a Windows "command prompt" like this: Normal Code: C: \> Code: D: \ Steve \ Projects \ Python> |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Python Programming Beginner question" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Good books for learning Python programming language | afroditaa | Software Development | 6 | 21-01-2013 09:42 AM |
| Ebook for learning Python programming language | Thaddeu$ | Ebooks | 6 | 20-12-2012 05:37 PM |
| Which Programming Language is good for a Beginner? | Mykola | Software Development | 4 | 10-04-2011 10:28 AM |
| Programming in python | Hashim | Software Development | 4 | 21-03-2011 10:05 PM |
| Question on classes in Python | Nutty | Software Development | 5 | 16-03-2009 11:55 AM |