Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[Python module] threading

threading — Higher-level threading interface
This module constructs higher-level threading interfaces on top of the lower level _thread module. See also the queue module.
The dummy_threading module is provided for situations where threading cannot be used because _thread is missing.
 
Õâ¸öÄ£¿éÊǹ¹½¨Ôڵײã_threadÄ£¿éÉϵġ£
dummy_threadingÄ£¿éÌṩÁË¿Éthreading£¨ÓÉÓÚ_threadȱʧ£©Ä£¿é²»ÄÜʹÓõÄÇé¿ö¡£
 
Note
While they are not listed below, the camelCase names used for some methods and functions in this module in the Python 2.x series are still supported by this module.
This module defines the following functions and objects:
threading.active_count() Return the number of Thread objects currently alive. The returned count is equal to the length of the list returned by enumerate().
threading.Condition() A factory function that returns a new condition variable object. A condition variable allows one or more threads to wait until they are notified by another thread.threading.current_thread() Return the current Thread object, corresponding to the caller’s thread of control. If the caller’s thread of control was not created through the threading module, a dummy thread object with limited functionality is returned.threading.enumerate() Return a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started.threading.Event() A factory function that returns a new event object. An event manages a flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true.class threading.local
A class that represents thread-local data. Thread-local data are data whose values are thread specific. To manage thread-local data, just create an instance of local (or a subclass) and store attributes on it:
mydata = threadi


Ïà¹ØÎĵµ£º

PYTHON½Ì³Ì [Symbian]

Ò»¡¢pythonÊÇʲô£¿
Æäʵ£¬python¾ÍÊÇÒ»Ãűà³ÌÓïÑÔ£¬¾ÍÏñjavaÒ»Ñù¡£±¾À´ÊÇÔÚµçÄÔÉϵ쬵«ÊÇËæ×ÅÊÖ»úµÄÁ÷ÐУ¬python±»ÒÆÖ²µ½ÁËÊÖ»úÉÏ£¬Í¬Ê±Ò²±»ÃüÃûΪpyS60¡£
¶þ¡¢pyÈí¼þµÄ¹¹Ôì
ËùÓеÄpyÈí¼þ¶¼Òª°üÀ¨ÈçÏÂÎļþ£º.app--1.65k£».rsc--337b£».aif¡£ÕâÈý¸öÎļþÔÚËùÓÐpyÈí¼þÖж¼ÊÇÏàͬµÄ£¬Î¨Ò»µÄÇø±ð¾ÍÊÇÈí¼þµÄuid²»Í¬¡£ÕâЩÎļ ......

PythonÐÔÄܲâÊÔº¯Êý

Python ÉçÇøÓоäË×Ó“Python ×Ô¼º´ø×Åµç³Ø¡£” ±ð×Ô¼ºÐ´¼ÆÊ±¿ò¼Ü¡£Python 2.3ÒÔºó ¡¢¾ß±¸Ò»¸ö½Ð×ö timeit µÄÍêÃÀ¼ÆÊ±¹¤¾ß¡£DiveIntoÖеÄÀý×Ó
>>> import timeit
>>> t = timeit.Timer("soundex.soundex('Pilgrim')",
... "import soundex")
>>> t.timeit() ......

arcgis python½Å±¾

Script Name: Spider_Create   
#Script Label: Create Spider Diagrams   
#   
#Description:  Custom python script developed to create spider diagrams from points contained   
#in one or two feature classes.  If using two fea ......

pythonѧϰ±Ê¼Ç

typeÏà¹Ø£º
ËùÓÐ×Ô¶¨ÒåÀàA
ÆäʵÀý£¬Èç a = A()
ʹÓÃtypeÔËËã·û·µ»ØµÄ¶¼ÊÇ<type, 'instance'>
¶ø»ù±¾ÀàÐÍ
±ÈÈç b = 3
type(b)£¬½á¹ûÊÇ<type, 'int'>
pythonµÄtype²»ÏñC++ÖеÄtypeidÄÇÑù£¬¿ÉÒÔÏÔʾÀàÃû¡£
£¨×¢£º¶ÔÓÚûÓÐvirtualº¯ÊýµÄÀà¶øÑÔ£¬typeidÊDZàÒëʱÆÚµÄÊÂÇ飨Ҳ¾ÍÊǾ²Ì¬ÀàÐÍ£©£»¶ÔÓÚÓÐvirtualº¯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ