04 2019 档案

摘要:1、python3中的字符串可以使用引号(’或”)开创建。 a = "hello World!” print(type(a)) 结果:<class 'str'> 2、python没有C语言等其他语言中“char”类型,哪怕只有一个字符,python也按照字符串处理。python访问子字符串,可以使用 阅读全文
posted @ 2019-04-15 08:50 cloos.xie 阅读(231) 评论(0) 推荐(0)
摘要:在使用Ubuntu14.04安装pyaudio是出现错误src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory 解决办法: sudo apt-get install python3-pyaud 阅读全文
posted @ 2019-04-03 20:33 cloos.xie 阅读(1657) 评论(0) 推荐(0)