自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 MAC下使用python下载B站视频(附视频格式转换方法)

安装’you-get’模块:# 1.1 先切换到到python运行环境$ which python3$ cd /usr/local/bin/# 1.2 再安装you-get模块$ pip install you-get2. 使用url地址下载:# 下载前记得切换到目标下载目录,方便查找或者归类# 2.1 以下命令可以获取视频信息$ you-get -i 'https...

2020-03-12 17:14:05 2986

原创 MAC升级到Mojave后WIFI灰色卡死

解决办法:打开终端,输入以下命令后WIFI会自动重启。sudo kill -9 `ps aux | grep -v grep | grep /usr/libexec/airportd | awk '{print $2}'`

2019-12-20 13:07:21 1124

原创 MAC空格键无法预览问题解决

重启Finder解决,方法:Option+Command+Esc键,选中’Finder’,然后点击’Relaunch’

2019-09-02 19:30:35 18076 10

原创 MAC终端运行.py文件

1、cd到py文件的目录cd /Users/li.wang/GoogleDrive/python/novabeyond2、修改py文件的权限为可执行权限chmod 777 run_all_like.py3、运行py文件python3 run_all_like.py

2019-09-01 00:59:01 544

原创 MAC 连接PyCharm与GitHub

一、准备工作1、homebrew安装git安装git,并查看版本及安装位置$ brew install git$ git --version$ which git2、创建SSH Key2.1 创建在默认位置/Users/li.wang/.ssh$ ssh-keygen -t rsa -C 'xxx@gmail.com'2.2 打开.ssh文件,SSH Key在id_rsa.p...

2019-09-01 00:52:17 1106

原创 7.18.2 reStrip(text, chars=None) -《automate the boring stuff with python》

strip()的正则表达式版本import redef reStrip(text, chars=None): if chars is None: regex = re.compile(r'^\s*|\s*$') else: regex = re.compile(r'^[' + chars + ']*|[' + chars + ']*$') ...

2018-12-24 15:25:08 310

原创 7.18.1 detection(password) -《automate the boring stuff with python》

假定两点:这是一个创建口令的场景;创建者知道强口令的定义,即长度不小于8个字符,同时包含大写和小写字符,至少有一位数字。那么:无需限制尝试的次数;无需使用print()提示强口令的定义。import redef detection(password): upperCheckRegex = re.compile(r'[A-Z]+') lowerCheckRe...

2018-12-22 15:16:40 327

原创 6.7 printTable(table) -《automate the boring stuff with python》

新手上路,首次分享。考虑到了不规则列表,将原tableData稍作了改动。tableData = [['apples', 'oranges', 'cherries', 'banana', 'test1'], ['Alice', 'Bob', ' ','Carol', 'David'], ['dogs', 'cats', 'moose', 'g...

2018-12-20 14:21:04 153

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除