ساب روتینگ ها subroutines

  1. ROOT1

    حل تمرین های نمونه با پایتون python, ساب روتینگ ها Subroutines

    Subroutines Introduction #----------------------------- # DO NOT DO THIS... greeted = 0 def hello(): global greeted greeted += 1 print "hi there" #... as using a callable object to save state is cleaner # class hello # def __init__(self): # self.greeted = 0 # def...
بالا