注釋
- 單行注釋
Python中單行注釋以#開頭,例如:
#這是一個(gè)單行注釋
print('hello,world!')
- 多行注釋
多行注釋用三個(gè)單引號(hào)'''或者三個(gè)雙引號(hào)"""將注釋擴(kuò)起來,例如:
'''
這是多行注釋
用單引號(hào)
'''
常用快捷鍵(mac)
- 保存 Command + S
- 查找 Command + F
- 注釋 Command + /
- 剪切 Command + X
- 復(fù)制 Command + C
- 粘貼 Command + V
- 撤銷 Command + Z
- 替換 Command + Option + F
- 終止程序 Control + c
常用命令
- 查看已有的第三方包 pip list
- 下載第三方包 pip install 包名
- 卸載第三方包 pip uninstall 包名