Giter Site home page Giter Site logo

Comments (7)

RicterZ avatar RicterZ commented on September 26, 2024

求 PR(偷个懒,没环境..
因为要保证 Linux / macOS / Windows 下 python2 / python3 的输出都没问题,很蛋疼(。

from bgmi.

trim21 avatar trim21 commented on September 26, 2024

我也没有MacOS的环境(
所以这两行代码在MacOS下是正确的吗

from bgmi.

trim21 avatar trim21 commented on September 26, 2024

大概是因为Linux和MacOS的终端默认编码就是utf8所以不会出现覆盖的问题。。。

from bgmi.

RicterZ avatar RicterZ commented on September 26, 2024

这个 tput cols 对于每个 windows 版本都 work 嘛?

from bgmi.

trim21 avatar trim21 commented on September 26, 2024

如果是cmd和powershell的话在上面就已经取得结果return了,只有git bash在if条件下取不到结果,函数会没有返回值。后面nonetype跟int做大小比较会报错。而git bash是自带tput的 所以只会影响Windows下的git bash用户。

from bgmi.

trim21 avatar trim21 commented on September 26, 2024

影响:原来会报nonetype无法跟int做<运算 现在修复了

from bgmi.

trim21 avatar trim21 commented on September 26, 2024

至于每个Windows版本。。。我没有win7设备,不知道在win7下工作不工作了(

from bgmi.

Related Issues (20)

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.