7.3小节完成

This commit is contained in:
XiongNeng
2015-01-08 11:20:26 +08:00
parent 279e51e788
commit 4ee0547541
2 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 函数注解元信息
Desc :
"""
def add(x:int, y:int) -> int:
return x + y
help(add)
print(add.__annotations__)