Comments (3)
ua.strip() 是用来去除字符串前后的空格或者制表符,就是空的地方就去除掉,只留下有字符的地方,[1:-1 - 1] ……这个就有点奇怪了,其实就是 [1:-2] ,这个是 Python 的切片,意思就是提取列表中 第2个数据(索引为1)到倒数第二个数据(不包括倒数第二个),之后返回一个新列表。
个人感觉,开发者的代码结构很混乱,而且没有注释,没有任何关于代码的解释
from bilibili-user.
确实是有问题的,此行代码的出处是由 @cloudsere 同学贡献的重构代码:05e7ed8
此处估计是她写错了,多了一个-1,后来被 @adlinx 发现了问题:05e7ed8
但是他修改的不对,虽然避免了之前多出一个-1的 bug,但是语义有问题。
感谢提出,已修复。
也感谢两位同学贡献的代码。
from bilibili-user.
from bilibili-user.
Related Issues (20)
- 项目周报 (2020 年 2 月 22 日 - 2020 年 2 月 29 日) HOT 1
- 项目周报 (2020 年 2 月 29 日 - 2020 年 3 月 7 日) HOT 1
- 项目周报 (2020 年 3 月 7 日 - 2020 年 3 月 14 日) HOT 1
- 项目周报 (2020 年 3 月 14 日 - 2020 年 3 月 21 日) HOT 1
- 项目周报 (2020 年 3 月 21 日 - 2020 年 3 月 28 日) HOT 1
- 项目周报 (2020 年 3 月 28 日 - 2020 年 4 月 4 日) HOT 1
- 项目周报 (2020 年 4 月 4 日 - 2020 年 4 月 11 日) HOT 1
- 项目周报 (2020 年 4 月 11 日 - 2020 年 4 月 18 日) HOT 1
- 项目周报 (2020 年 4 月 18 日 - 2020 年 4 月 25 日) HOT 2
- 项目周报 (2020 年 4 月 25 日 - 2020 年 5 月 2 日) HOT 1
- 项目周报 (2020 年 5 月 2 日 - 2020 年 5 月 9 日) HOT 1
- 项目周报 (2020 年 6 月 27 日 - 2020 年 7 月 4 日) HOT 1
- 采集的数据中粉丝数都为0,注册时间都为1970-01-01 HOT 1
- 这个项目看起来很不错,但是数据好像还是2016年的,最近有更新吗?
- 你这个项目用的api提示已经下线了啊 HOT 4
- ip 经常被封 ,又没有免费的代理 ip HOT 1
- 请问具体的数据现在还可以提供一下嘛,用于课程作业,谢谢~ HOT 2
- 嗨,数据能共享下嘛?
- imp 模块弃用
- 请求商业推广合作
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilibili-user.