googujiang / gugumoe-bot Goto Github PK
View Code? Open in Web Editor NEW咕小酱一个Bug机器人(划掉
咕小酱一个Bug机器人(划掉
python
版本迭代,有些语法可能会发生变更,所以建议在 README.md
中添加 python
版本相关说明;requirements.txt
中的所需库的版本进行约束,有些库在更新后会改变函数、方法、类等,亦或是语法,一味的安装最新版可能会导致原代码报错,有必要进行约束。执行 python main.py
后报错:TypeError: 'builtin_function_or_method' object is not subscriptable
,意思是 内置的函数或方法不能下标引用。
经过分析,发现在 main.py
的第 33
行出现以下代码:
Line 33 in cff7920
可见,代码中写到了 dir[i]
,但 dir
是个内置函数:Built-in Functions,显然是这个语句引发了错误。
根据上下文分析:
Line 30 in cff7920
可能是因为误把 dir_list
写为 dir
由此引发的问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.