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

windowsÏÂʹÓÃgccµ÷ÓÃpythonµÄÎÊÌâ

ÓÃgcc±àÒëÁËÒ»¸öC++µ÷ÓÃpythonµÄ³ÌÐò£¬Õâ¸ö³ÌÐòÔÚVSÏÂÊǺÃÓõ쬶øÇÒûÓÐʹÓÃvsµÄÈκοâ
¿ÉÊǵ½ÁËgccϾÍÊÇÎÞ·¨Ê¹ÓÃ
ºóÀ´ÉÏÍø²éÁËÒ»ÏÂ×ÊÁϲÅÖªµÀ£¬ÊÇÒòΪclÓëgccµÄÔËÐÐʱ¿â²»Í¬¡£
´ò¿ªcmd´°¿Ú£¬ÊäÈëpython¾Í¿ÉÒÔ¿´µ½
Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
pythonµÄwindows°æ±¾ÊÇÓÃMSC±àÒëµÄ
ËùÒÔpython.libÖеÄÔËÐÐʱ¿âÓëgccÎÞ·¨Æ¥Åä
½â¾ö°ì·¨£¬µ±È»×îÏÈÏëµ½µÄÊÇÏÂÒ»·ÝpythonÔ´´úÂëÓÃgccÔÙ±àÒëÒ»±é¡£ÊÔÁËһϣ¬¾õµÃ¹¤×÷Á¿ºÜ´ó£¬Ê±¼äÀ´²»¼°£¬¾ÍûÓÐ×ÐϸÑо¿¡£
×îºóÖ»ºÃ°²×°ÁËÒ»¸öCygwinÁË£¬°²×°µÄʱºòÑ¡ÔñÁ˸½´øµÄpython°ü¡¢perl°ü¡£


Ïà¹ØÎĵµ£º

CºÍPython³ÌÐòÔ±µÄJavaScriptѧϰָÄÏ£¨Ò룩


write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie
ÌÖÂÛÐÂÎÅ×é¼°Îļþ
 Ô­ÎÄÀ´×Ô£º¡¶JavaScript for C & Python programmers
¡·£¬¾­¹ý×÷ÕßCanisÔÊÐíºó·­Ò룬¼´Ê¹×ªÔØÇ븽´ø´ËÁ´½Ó¡£

ǰÑÔ£ººÜÉٸɷ­ÒëµÄÊÂÇ飬ÀÛ£¬ÐÁ¿à£¬²»ÄÜ·¢»Ó£¬µäÐ͵ķÑÁ¦²»Ìֺã¬×î½üÎÞÁÄ£¬ÏëÔÚÍøÒ³ÉÏÏÔʾ¶¯»­£¨ÒòΪCSDNÌ ......

Python ÓÎÏ·³õѧ

import sys, pygame, time
size = width, height = 700,700
fontColor = (0,0,255)
class walk:
'''This is a game about war.
Just like war 3.'''
def __init__(self):
'''Init the screen.
Get param and init the screen'''

#print ('this is init funnction') ......

python »ù´¡

   Python¿ìËÙÈëÃÅ
                        Ŀ¼
1. µÚÒ»Õ Python¿ìËÙÈëÃÅ
                &nbs ......

pythonÓï·¨ºÍ´úÂëÔ¼¶¨

1. µÚ¶þÕ Óï·¨¼°´úÂëÔ¼¶¨                       
                      &nb ......

PythonÖÐÖ´ÐÐshellÃüÁîµÄʵÀý

1¡£
myCoolVariable="some_string"
os.system("echo myCoolVariable")
2.
>>> os.system('echo "asdg"')
asdg
0
>>> os.system("echo 'asdgwere'")
asdgwere
0
3.
$ python
>>>hamburger="potato"
>>>import os
>>>os.system("echo 'hamburger'")
potato
0
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ