![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
kanwwan
世界上没有完全笔直的路,要准备走曲折的路
展开
-
python 自定义注解
1. 自定义注解 def foo(cls): passfoo = synchronized(lock)(foo)foo = classmethod(foo)@classmethod@synchronized(lock)def foo(cls): pass参考:1. 官方文档:https://www.python.org/dev/peps/pep-0318/原创 2020-06-05 10:52:12 · 1051 阅读 · 0 评论 -
python- hello world
def foo(): str = "kanwan"; print(str);if __name__ == '__main__': print("main"); foo();1. 文件名为hello.py, 直接运行hello.py, 结果为: main kanwan2. shell 中运行 >>hello....原创 2020-04-29 21:18:50 · 162 阅读 · 0 评论 -
python资料
1. 方法论: https://blog.csdn.net/csdnnews/article/details/103193692原创 2020-01-14 21:04:19 · 98 阅读 · 0 评论