- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
import os | |
import sys | |
import imageio | |
import numpy as np | |
import librosa as lr | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm |
import os | |
import librosa | |
import matplotlib | |
import matplotlib.pyplot as plt | |
matplotlib.rcParams['svg.fonttype'] = 'none' | |
import numpy as np | |
from scipy.io.wavfile import read as readwav | |
# Constants |
import asyncio | |
loop = asyncio.get_event_loop() | |
async def hello(): | |
await asyncio.sleep(3) | |
print('Hello!') | |
if __name__ == '__main__': | |
loop.run_until_complete(hello()) | |
#!/usr/bin/env python | |
#-*-coding:utf8-*- | |
""" | |
vesion2.0 | |
这个脚本的作用是通过输入某首歌页面的url,来实现这首歌的下载,保存到当前工作目录下。 | |
目前可以实现高音质音乐的下载,无须账号登陆。 | |
比如,When I'm Sixty-Four的页面的url是 http://www.xiami.com/song/1003908 | |
download_hq_music('http://www.xiami.com/song/1003908'),将会实现When I'm Sixty-Four的320k版本下载 |