Which Python IDE can run my script line-by-line?

后端 未结 15 798
小鲜肉
小鲜肉 2021-02-01 02:38

I wouldn\'t call myself programmer, but I\'ve started learning Python recently and really enjoy it.

I mainly use it for small tasks so far - scripting, text processing,

15条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 03:09

    Take the hint: The basic Python Read-Execute-Print-Loop (REPL) must work.

    Want Evidence?

    Here it is: The IDE's don't offer much of an alternative. If REPL wasn't effective, there's be lots of very cool alternatives. Since REPL is so effective, there are few alternatives.

    Note that languages like Java must have a step-by-step debugger because there's no REPL.

    Here's the other hint.

    If you design your code well, you can import your libraries of functions and classes and exercise them in REPL model. Many, many Python packages are documented by exercising the package at the REPL level and copying the interactions.

    The Django documentation -- as one example -- has a lot of interactive sessions that demonstrate how the parts work together at the REPL prompt.

    This isn't very GUI. There's little pointing and clicking. But it seems to be effective.

提交回复
热议问题