Here's a program, the HTML for which was generated with this recipe.
#!/usr/bin/env python
class HelloWorld():
"A class to welcome you."
def __init__(self,name):
self.name = name
def speak(self):
print("Hello world, and %s in particular.\n" % \
(self.name))
if __name__ == "__main__":
a = HelloWorld('ustinjay')
a.speak()Hello world, and ustinjay in particular.
After adding a style-sheet definition of pre to my blog's Template, which I got from the Python site, the background turned yellow. Before this, the background was plain white.
No comments:
Post a Comment