initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python
class HTMLWrapper():
def __init__(self, tag):
self._tag = tag
def __call__(self, text): # <1>
return '<{0}>{1}</{0}>'.format(self._tag, text)
if __name__ == '__main__':
h1 = HTMLWrapper('h1') # <2>
print(h1('spam')) # <3>
div = HTMLWrapper('div')
print(div('ham'))