About 538,000 results
Open links in new tab
  1. How do I get time of a Python program's execution?

    Oct 13, 2009 · I've looked at the timeit module, but it seems it's only for small snippets of code. I want to time the whole program. $ python -mtimeit -n1 -r1 -t -s "from your_module import …

  2. How to Execute a Python Script in Notepad++? - Stack Overflow

    Nov 9, 2009 · Links: ) This works fine, and you can even run files in interactive mode by adding -i to your code (links: ). Run python program in IDLE with code something like this (links: , in …

  3. How can I make one python file run another? - Stack Overflow

    Using import adds namespacing to the functions, e.g. function() becomes filename.function(). To avoid this use "from name import *". This will also run the code body. Running with …

  4. python - How to repeatedly execute a function every x seconds?

    This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user. In this question about a cron …

  5. Simplest async/await example possible in Python - Stack Overflow

    Jun 8, 2018 · The asynshonous equivalent on the other hand looks somting like this took three seconds to run as opposed to nine secounds. The first count cycle was started and as soon as …

  6. How to execute Python code from within Visual Studio Code

    May 1, 2015 · First: To run code: use shortcut Ctrl + Alt + N; or press F1 and then select/type Run Code, or right click in a text editor window and then click Run Code in the editor context menu; …

  7. Key shortcut for running python file in VS code - Stack Overflow

    Apr 27, 2022 · The button just runs the file in a Python terminal, the default command associated with Ctrl+F5 will run the file in the Python debugger, just with the debugging turned off. – Ajean …

  8. How to speed up Python execution? - Stack Overflow

    The only real way to know would be to profile and measure. Your code could be doing anything. "doSomething" might be a time.sleep(10) in which case, forking off 10000000 processes would …

  9. python - Run function from the command line - Stack Overflow

    It is always an option to enter python on the command line with the command python. then import your file so import example_file. then run the command with example_file.hello() This avoids …

  10. Visual Studio Code not running Python - Stack Overflow

    [Done] exited with code=1 in 0.034 seconds. It's a very simple Hello, World! program that doesn't really need much. Why is Visual Studio Code not letting me run a Python file? This is where …

Refresh