Giter Site home page Giter Site logo

gugumoe-bot's Introduction

这里是咕谷酱的 GitHub

我在这里会写一些奇奇怪怪的东西

插图来自 伊蕾娜 By yuko幽子

gugumoe-bot's People

Contributors

googujiang avatar miaoyww avatar windleaf233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gugumoe-bot's Issues

[optimizations] 建议对代码进行一些优化

  1. [optional] 因为随着 python 版本迭代,有些语法可能会发生变更,所以建议在 README.md 中添加 python 版本相关说明;
  2. [required] 对 requirements.txt 中的所需库的版本进行约束,有些库在更新后会改变函数、方法、类等,亦或是语法,一味的安装最新版可能会导致原代码报错,有必要进行约束。

[bug] 可能为 typo 引发的 TypeError 下标引用错误

执行 python main.py 后报错:TypeError: 'builtin_function_or_method' object is not subscriptable,意思是 内置的函数或方法不能下标引用

经过分析,发现在 main.py 的第 33 行出现以下代码:

logger.info(f"已存在"+str(dir[i]))

可见,代码中写到了 dir[i],但 dir 是个内置函数:Built-in Functions,显然是这个语句引发了错误。

根据上下文分析:

logger.info(f"正在创建 "+str(dir_list[i]))

可能是因为误把 dir_list 写为 dir 由此引发的问题。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.