feat: 新增Notion自动化综合案例示例代码
This commit is contained in:
18
projects/notion-automator/tests/basic.py
Normal file
18
projects/notion-automator/tests/basic.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import TypeVar, Union
|
||||
|
||||
Number = TypeVar("Number", bound=Union[int, float])
|
||||
|
||||
|
||||
def divide(x: Number, y: Number) -> Number:
|
||||
result = x / y
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
print(divide(2, 1))
|
||||
print(divide(0, 1))
|
||||
print(divide(100, 10))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user