- 博客(10)
- 资源 (65)
- 收藏
- 关注
转载 在Linux终端命令行下播放音乐的命令
1、打开一个终端(Ctrl+Alt+T),然后输入如下命令:sudo apt-get install sox2 我们就可以通过下面的命令来让 SOX 可以播放它所支持的音频格式文件:如 WAV,MP3,MPG,OGG,FLAC 等等sudo apt-get install sox libsox-fmt-all3比如要播放系统中所有音频文件,我们可以采用这个命令:
2016-09-26 20:42:24 9441
原创 python之正则表达式之简单分割字符串split()函数
import rem=re.split(' ','this is a good time')print m['this', 'is', 'a', 'good', 'time']
2016-09-25 15:42:51 5167
原创 python之正则表达式搜索和替换函数sub()与subn()
import ren=re.subn('\\bfoo\\b','noon','foo is foo foois foo isnotfoo')print n第一个是一个正则表达式匹配字符串中的单词,后面是要替换成的单词。结果('noon is noon foois noon isnotfoo', 3)两者的不同之处在于subn返回替换的次数
2016-09-25 15:37:13 11476
原创 python之正则表达式匹配全部findall()方法
# __*__ coding:utf-8 __*__import rem=re.findall('\\bfoo\\b','foo is foo foois foo isnotfoo')#上面的是匹配单词边界\bprint m返回结果['foo', 'foo', 'foo']
2016-09-25 15:29:03 6018
原创 python之正则表达式match()方法
>>>import re >>>m=re.match('^\w+','foo')>>> if m is not None: print 'this is foo' this is foo>>>
2016-09-24 11:54:15 660
原创 ubantu下安装五笔输入法
我用里海峰五笔sudo apt-get install ibus-table-wubi[sudo] password for mt: Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following NEW packages will b
2016-09-22 21:56:41 764
原创 ubuntu下安装Qualcomm Atheros QCA6174无线网卡驱动方法
lspci | grep Qu07:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)首先通过上面命令查找到高通无线网卡的型号知道了之后通过安装sudo apt-get install linux-firmware一般就可以解决了。以下是在网
2016-09-22 21:49:27 16098
原创 python之__init__和__del__简单用法
>>> class aa(): def __init__(self): print 'this is init' def __del__(self): print 'this is del' >>> a=aa()this is init>>> del athis is del>>>
2016-09-14 17:18:12 599
blender-2.82a-windows64.7z.001
2021-08-26
vlc-3.0.12-win64.exe
2021-01-22
nethack-366-src.tgz
2020-09-27
nethack-362-src.tgz
2020-09-23
cgoban 1.9.13
2020-09-22
libXp so文件
2017-09-04
sip for python
2016-11-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人