Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: Python | Size: 0.41 KB | Hits: 53 | Expires: Never
Copy text to clipboard
  1. class Aaaa:
  2.     """Ma classe"""
  3.  
  4.     def __init__(self):
  5.         """Le constructeur"""
  6.         pass
  7.  
  8.     def fonction_a(self):
  9.         """Ma fonction a"""
  10.         return 0
  11.  
  12.     def fonction_b(self, a, b):
  13.         """Ma fonction b"""
  14.         return a + b
  15.  
  16. print Aaaa.__doc__, "\n", Aaaa.fonction_a.__doc__
  17.  
  18.  
  19. C:\Documents and Settings\jtremesaygues>python Desktop\blablabla.py
  20. Ma classe
  21. Ma fonction a