Created
May 1, 2023 20:38
-
-
Save JD-P/632164a4a4139ad59ffc480b56f2cc99 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
Python 3.9.12 (main, Apr 5 2022, 06:56:58) | |
[GCC 7.5.0] :: Anaconda, Inc. on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> print("foo") | |
foo | |
>>> import numpy as np | |
>>> np.array([0, 0, 0]) | |
array([0, 0, 0]) | |
>>> from AGIpy import attribute_source | |
>>> attribute_source("To be, or not to be, that is the question") | |
<AGIpy.attribute_source.AttributeSource object at 0x7f8f9c0c5f60> | |
>>> attribute_source("To be, or not to be, that is the question").author | |
'William Shakespeare' | |
>>> attribute_source("This partly fixed and partly fluid content of language engenders a special relationship between it and the speaking generation. There is generated within it a stock of words and a system of rules whereby it grows, in the course of millennia, into an independent force.").author | |
'Wilhelm Von Humboldt' | |
>>> attribute_source("If you cannot saw with a file or file with a saw, then you will be no good as an experimentalist.").author | |
'Augustin Fresnel' | |
>>> attribute_source("{quote}").author |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment