Created
September 2, 2020 08:52
-
-
Save ycui1/1834e2644aaf9bc2eed1c52971071fa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> @logging_time | |
... def calculate_sum_n(n): | |
... return sum(range(n)) | |
... | |
... calculate_sum_n(10000) | |
... | |
Traceback (most recent call last): | |
File "<input>", line 5, in <module> | |
TypeError: logger() takes 0 positional arguments but 1 was given |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment