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°ü¡£
Ïà¹ØÎĵµ£º
write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie
ÌÖÂÛÐÂÎÅ×é¼°Îļþ
ÔÎÄÀ´×Ô£º¡¶JavaScript for C & Python programmers
¡·£¬¾¹ý×÷ÕßCanisÔÊÐíºó·Ò룬¼´Ê¹×ªÔØÇ븽´ø´ËÁ´½Ó¡£
ǰÑÔ£ººÜÉٸɷÒëµÄÊÂÇ飬ÀÛ£¬ÐÁ¿à£¬²»ÄÜ·¢»Ó£¬µäÐ͵ķÑÁ¦²»Ìֺã¬×î½üÎÞÁÄ£¬ÏëÔÚÍøÒ³ÉÏÏÔʾ¶¯»£¨ÒòΪCSDNÌ ......
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¿ìËÙÈëÃÅ
Ŀ¼
1. µÚÒ»Õ Python¿ìËÙÈëÃÅ
&nbs ......
1. µÚ¶þÕ Óï·¨¼°´úÂëÔ¼¶¨
&nb ......
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
......