问题
I'm using Pydev with Eclipse. Is it possible to execute a line of python code or a text selection with my IDE? Thanks!
回答1:
Pydev documentation is available here For you specific issue I would suggest using the 'Interactive Console' built into PyDev the how-to is located here
Also, if you're looking for additional short-cuts for PyDev you can look here
Regards
Nishant
回答2:
CTRL+ALT+ENTER
will execute the selected lines.
来源:https://stackoverflow.com/questions/9664539/execute-python-line-of-code-in-eclipse