03 2021 档案

摘要:一、前言 在我们在使用python进行编码的时候,写出高质量性能好的代码是一个比较好的习惯,line_profiler可很好的帮助我们 二、安装 1、下载 下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#line_profiler 下载想要安装的版本 阅读全文
posted @ 2021-03-30 16:27 未来可期_Durant 阅读(1679) 评论(0) 推荐(0) 编辑
摘要:作用: next() 返回迭代器的下一个项目 语法: next(iterable[, default]) 参数说明: iterable -- 可迭代对象 default -- 可选,用于设置在没有下一个元素时返回该默认值,如果不设置,又没有下一个元素则会触发 StopIteration 异常。 返回 阅读全文
posted @ 2021-03-26 17:45 未来可期_Durant 阅读(234) 评论(0) 推荐(0) 编辑
摘要:一、前言 在我们进行python编码的时候经常需要用到字符串的格式化,下面是常用的几种字符串格式化方式。 二、三种格式化方式 1、%格式化 name = 'xiaoming' age = '10' test = '%s is %s years old' % (name, age) print(tes 阅读全文
posted @ 2021-03-26 11:34 未来可期_Durant 阅读(2069) 评论(0) 推荐(0) 编辑
摘要:一、安装 pip install autopep8 (CloudStorage) D:\learn\IOT\CloudStorage\unit>pip install autopep8 Collecting autopep8 Downloading https://files.pythonhoste 阅读全文
posted @ 2021-03-23 11:15 未来可期_Durant 阅读(640) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示