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-07-16 22:45:35 +08:00 · 2791 次点击
    这是一个创建于 2475 天前的主题,其中的信息可能已经有所发展或是发生改变。
    #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-07-16 22:48:42 +08:00
    LZ 轮子帝。。
    intohole
        2
    intohole  
    OP
       2017-07-16 22:53:22 +08:00
    @est 嗯 是的 , 希望在一个工具集中,将所有工具都能收集起来
    aheadlead
        3
    aheadlead  
       2017-07-17 00:44:42 +08:00
    intohole
        4
    intohole  
    OP
       2017-07-18 10:08:50 +08:00
    @aheadlead 嗯 谢谢指点,但是就是一个小工具 api 一定要简单
    intohole
        5
    intohole  
    OP
       2017-07-18 10:22:57 +08:00
    大家有什么好玩的工具 能否贡献出来 , 谢谢 或者有什么要解决的东西 ,可以告诉我
    intohole
        6
    intohole  
    OP
       2017-08-04 15:58:17 +08:00
    @aheadlead 你不觉得他的 api 很麻烦?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2802 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:14 · PVG 20:14 · LAX 05:14 · JFK 08:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.