美文网首页
Python Develop Tips

Python Develop Tips

作者: Tate_code | 来源:发表于2021-01-03 16:31 被阅读0次

1.使用pip3 安装Python3 的资源库

pip3 install xlwt
或者想要一次性安装多个库需要把需要安装的库放在requirements.txt,使用pip3安装的可以使用指令
pip3 install -r requirements.txt

2.python 合并拼接字符串

>>> a = ["hello", "world"]
>>> a
['hello', 'world']
>>> ' '.join(a)
'hello world'
>>> ','.join(a)
'hello,world'
>>> ''.join(a)
'helloworld'

3.使用pip3 list 查看当前已安装的库和版本

相关文章

网友评论

      本文标题:Python Develop Tips

      本文链接:https://www.haomeiwen.com/subject/auauoktx.html