Markdown
- csdn离线编辑 write.blog.youkuaiyun.com/mdeditor
print()
- print默认end=“\n”,会自动换行,增加end=“ ”可以不换行
jupyter notebook
- 更改默认目录(Windows下)
- jupyter快捷方式属性,去掉%USERPROFILE%
- 执行 jupyter notebook –generate-config
- 打开 C:\Users\sspmi.jupyter\jupyter_notebook_config.py
- 找到 #c.NotebookApp.notebook_dir = ” 改为 c.NotebookApp.notebook_dir = ‘E:\Python’
新建git库
echo "# pengpeng_invasion" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/SSPMII/pengpeng_invasion.git
git push -u origin master
Python转exe
pip install pyinstaller
git
- 查看版本:git --version
anaconda
- 更新
- 先提权:
sudo chown -R ss:ss /home/marley/miniconda3
- 升级:
conda update -n base conda
安装sublime text3
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
- Ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https
- Select the channel to use: stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
- Update apt sources and install Sublime Text
sudo apt-get update
sudo apt-get install sublime-text
安装pygame
python3 -m pip install -U pygame --user
- 注意最好去官网找最新的安装方法,需要好的网络