Simple use of python [mac-ide: pycharm]

1. Install and configure the python3 development environment on Mac

Click here to view python and pycharm download and installation, environment configuration

2. Pycharm common shortcut key records

  • 1 Global search
command⌘+shift+F
  • 2 Add row/copy selected code
command +d 
  • 3 Delete row/cut
command +x
  • 4 Format code
command+option+L
  • 5 Execute program
control+shift + r 

eg:
Enter print ('hello') in the py file
and enter the shortcut key to print directly on the console, or right-click to run

  • 6 Move up and down on the line selected by the cursor:
上移一行:Shift + Alt + Up
下移一行:Shift + Alt + Down
  • 7 Quickly copy a line
 command + d     
  • 8 Quickly create a new line
shift enter 

Guess you like

Origin blog.csdn.net/qq_17033579/article/details/131511912