python学习

Markdown

  • csdn离线编辑 write.blog.csdn.net/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

  • 安装:apt-get install git

- 查看版本:git --version

anaconda

  • 更新
    • 先提权:sudo chown -R ss:ss /home/marley/miniconda3
    • 升级:conda update -n base conda

安装sublime text3

  • 自带软件商店安装太慢了
  • 使用命令安装
    • Install the GPG key:
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
  • 注意最好去官网找最新的安装方法,需要好的网络
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值