1 4 4
  1. #1
    .: :.
    Debian 6
    GNOME

    Sep 2006
    4,622
    1,634
    6,730 1,416
    30

    Python

    Call :

    >>> def Caller(func): ... func() ...
    :

    >>> def customTax(price, tax=0.16): ... return price + (price * tax) ...
    :

    >>> x = Caller(customTax(100)) Traceback (most recent call last): File "", line 1, in File "", line 2, in Caller TypeError: 'float' object is not callable
    ء Caller :

    >>> def Caller(func, *funcargs): ... return func(*funcargs)
    Caller * customTax :

    >>> x = Caller(customTax, 100) >>> x 116.0
    :

    >>> x = Caller(customTax, 100,0.12) >>> x 112.0
    :

    >> def Welcome(who): ... print "Hello " + str(who)
    ( return) Caller x x ! ѡ None x interpreter print x :

    >>> x = Caller(Welcome, 'Binary') Hello Binary
    :

    >>> x
    None x :

    >>> print x None
    None Welcome Python None :

    >>> type(x) <type 'NoneType'>
    NoneType :

    >>> Caller(Welcome, 'Binary') Hello Binary
    ̡ Welcome



    ...

    ---------------------------------------------------------------------
    \\
    //
    ---------------------------------------------------------------------


    ...
    ...
    ...
    ...
    ...
    ...

    (Tariq)


  2. 8 :

    , , , , , sasa1, ,

  3. #2
    Ubuntu 10.10
    GNOME

    Jul 2007
    256
    42
    71 44
    1


    hello binary
    caller hello binary

  4. #3
    .: :.
    Debian 6
    GNOME

    Sep 2006
    4,622
    1,634
    6,730 1,416
    30

    ...

    ...


    ...

    ---------------------------------------------------------------------
    \\
    //
    ---------------------------------------------------------------------


    ...
    ...
    ...
    ...
    ...
    ...

    (Tariq)


  5. :


  6. #4
    .: :.
    16
    GNOME3

    Jun 2009
    4,562
    5,052
    5,263 2,303


    hello binary
    caller hello binary
    http://git.ojuba.org/cgit/occ/tree/P...terface.py#n31 ( ) !

    *-* *-* *-* Toolbar


: 1 (0 1 )

  1. []
    .: :.
    : 0
    : 06-02-2011, 05:23 PM
  2. 2.6.35.2
    diamondteam .: - Linux Kernel :.
    : 1
    : 17-08-2010, 03:13 AM
  3. [] explode perl
    mohamed clay .: :.
    : 0
    : 26-06-2010, 03:21 PM