V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
intohole
V2EX  ›  Python

只是一个小工具,抛砖引玉吧

  •  1
     
  •   intohole · 2017 年 7 月 16 日 · 3235 次点击
    这是一个创建于 3108 天前的主题,其中的信息可能已经有所发展或是发生改变。
    #coding=utf-8
    
    
    from b2.console2 import ColorText
    
    
    
    t = ColorText()
    print t.ForeRed + t.BackGreen + 'fore red  back green'
    print t + "this is test"
    print t + t.BackYellow
    print t + "fore red and back yellow"
    

    工程地址 : github.com/intohole/b2

    这个我在 ubuntu 下验证可以;如果有其它的想要做的话,可以提出需求,如果可以 follow 下我,谢谢了

    6 条回复    2017-08-04 15:58:17 +08:00
    est
        1
    est  
       2017 年 7 月 16 日
    LZ 轮子帝。。
    intohole
        2
    intohole  
    OP
       2017 年 7 月 16 日
    @est 嗯 是的 , 希望在一个工具集中,将所有工具都能收集起来
    aheadlead
        3
    aheadlead  
       2017 年 7 月 17 日
    intohole
        4
    intohole  
    OP
       2017 年 7 月 18 日
    @aheadlead 嗯 谢谢指点,但是就是一个小工具 api 一定要简单
    intohole
        5
    intohole  
    OP
       2017 年 7 月 18 日
    大家有什么好玩的工具 能否贡献出来 , 谢谢 或者有什么要解决的东西 ,可以告诉我
    intohole
        6
    intohole  
    OP
       2017 年 8 月 4 日
    @aheadlead 你不觉得他的 api 很麻烦?
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   853 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:34 · PVG 05:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.