Git Product home page Git Product logo

Comments (7)

houtianze avatar houtianze commented on August 30, 2024
uargs.append(unicode(arg, SystemEncoding))

改成:

uargs.append(arg.encode('utf-8')))

能解决问题不?

from bypy.

syshack avatar syshack commented on August 30, 2024

不行 还是那个错

from bypy.

houtianze avatar houtianze commented on August 30, 2024

改成:

uargs.append(arg)

如何?系统支持中文/Unicode输入吗?

from bypy.

syshack avatar syshack commented on August 30, 2024

支持

from bypy.

syshack avatar syshack commented on August 30, 2024

还是一样的错

from bypy.

houtianze avatar houtianze commented on August 30, 2024

谷了一下,应该是因为Python版本稍旧(2.6),升级2.7应该可以解决:

https://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python

Chances are that you're running an old Python version, and not 3.1. In Python 2.6, you need indices in the format specs, like this:

"{0} {1}\n".format(x,y)

from bypy.

syshack avatar syshack commented on August 30, 2024

是的,改完了ok了 ,tks

from bypy.

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.