推荐学习书目
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

谁能帮我看看我写的注解问题

  •  
  •   intohole · Dec 1, 2017 · 2879 views
    This topic created in 3095 days ago, the information mentioned may be changed or developed.

    这个是一个 python crontab 实现,但现在问题出线了

    https://github.com/intohole/pyct/blob/master/pyct/pyct.py

    我想使用注解,让这个程序更简单 , 谁能帮我优化下 , 谢谢

    这个不是工作代码,只是因为感觉好玩写的工具类

    Supplement 1  ·  Dec 1, 2017
    应该说明是装饰器问题 ,和 java 搞混了
    6 replies    2017-12-04 17:39:45 +08:00
    neoblackcap
        1
    neoblackcap  
       Dec 1, 2017
    Python 没有注解
    intohole
        2
    intohole  
    OP
       Dec 1, 2017
    @neoblackcap 装饰器~ 和 java 搞混了
    goofool
        3
    goofool  
       Dec 1, 2017
    能用就行,不用优化,越大白话越好
    intohole
        4
    intohole  
    OP
       Dec 1, 2017
    @goofool 嗯 能写出让人看的懂代码是最好的 ~~~
    alber1986
        5
    alber1986  
       Dec 4, 2017
    路过一下
    intohole
        6
    intohole  
    OP
       Dec 4, 2017
    @alber1986 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 14:02 · PVG 22:02 · LAX 07:02 · JFK 10:02
    ♥ Do have faith in what you're doing.