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

IronPythonÖÐÈçºÎÌí¼ÓPythonÄ£¿é?

IronPythonÖеŦÄÜÌ«ÉÙÁË,ºÜ¶à³£ÓõÄPythonÄ£¿é¶¼Ã»ÓÐ,Ò²¼ÓÉϲ»¡£
»¹µÃÓÃCLRÀ´À©Õ¹¡£
¸ãµ½·½·¨ÁË,ÈçÏÂ:
Python code:

import sys #µ¼Èësys module£»
sys.path.append("c:/Python24/Lib") #Ôö¼ÓËÑË÷·¾¶£¬Ò²¾ÍÊÇ˵µ±importij¸ömoduleµÄʱºò£¬½«»áµ½ÒÑÓеÄËÑË÷·¾¶ÖвéÕÒ£»
import random #µ¼ÈëCPythonÖÐÃûΪrandomµÄmodule£»
random.__doc__ #ÏÔʾģ¿éµÄdocument£»



ÎÊÌâÒѾ­½â¾ö,Òª½áÌûÁË,Ë­»Ø¸´»ý·Ö¾Í¾Í¸øË­


ºÜ¶à¶¼Ã»ÓеÄ,²»ÒªÆæ¹ÖÁË,ÕâÒ²ÊǾٸöÀý×Ó°ÕÁË.
Âé·³µÄÊÇÈç¹û°ÑIronPythonµÄÔ´´úÂëÐÞ¸ÄÁ˺ó,Èç°ÑȱʡÊý×ÖÀàÐ͸ÄΪdecimal,ºÜ¶àCpythonµÄÄ£¿é¾Í²»ÄÜÓÃÁË.

ÕⶫÎ÷»¹Ã»³ÉÊ죬»¹ÔÚ·¢ÓýÖÐ
Èç¹ûÒªÓÃcpythonµÄ¶«Î÷£¬¾Íû¶à´óÒåÒå

ÎÒÓÐÏîÄ¿,ÒªÔÚ.NETÖÐÓÃ,ÓÃIPY¿ÉÒÔ¸ü½ôÃܼ¯³É


Ïà¹ØÎÊ´ð£º

python urllib urllib2 httplib ·ÃÎÊurlµÄÎÊÌâ

ÎÒÏëÓÃpython½âÎöÍøÒ³ÖеÄurl ÔÚÏÂÔØ֮ǰ, ÎÒÏëÏÈ·¢Ò»¸öheadÇëÇó ²»ÐèÒªÏÂÔØÕû¸öÍøÒ³, ÏÈ»ñµÃ¸ÃÍøÕ¾µÄheadÐÅÏ¢, ¶ÁȡһЩÐÅÏ¢Ö®ºó ÔÚµ÷ÓÃÕâЩ¿âµÄread·½·¨À´¶ÁÈ¡Õû¸öÍøÒ³ ¸ÃÔõô²Ù×÷ÄØ ¶àл
°ï¶¥ÁË

ÓÐÈËÄÜÖ¸½ÌÒ» ......

python ͼÏñ¶à±ßÐÎÇиî

pythonµÄPIL¿â×Ô´øµÄ·½·¨Ö»ÄܽøÐоØÐεÄÇиÈç¹ûÎÒÓÐÁËÒ»¸ö¶à±ßÐθ÷¸ö¶¥µãµÄ×ø±ê£¬ÈçºÎ¶ÔÏÖÓеÄͼƬ°´ÕÕÕâ¸ö¶à±ßÐνøÐÐÇиîÄØ£¿
²»Ò»¶¨ÒªÓÃPIL¿â£¬ÈκÎÄÜʵÏÖÕâ¸ö¹¦Äܵķ½·¨¶¼ÐС£

ͼƬÇиîµÄjs²»ÊǺܶàÂð£¿
......

¾«ÐÄËѼ¯µÄѧϰpythonµÄ7±¾Êé

ѧϰpythonµÄ7±¾Êé
°üÀ¨6±¾chm£¬Ò»±¾pdf×ÊÁÏ
¶ÔѧϰpythonÓкܴóµÄ°ïÖú 
http://download.csdn.net/source/619791
¾«ÐÄËѼ¯£¬²»Òª»ý·Ö£¬ÄóöÀ´·ÖÏí
лл¥Ö÷£¬ÐÁ¿àÁË~



lz ×îºÃ°ÑÊéÃûºÍ¼òµ¥½éÉܼÓÉ ......

¹ØÓÚpython ±Õ°üµÄÒ»¸öÎÊÌ⣨±Õ°üÓеãÄÑÀí½â£©

python ºËÐıà³Ì£¨µÚ¶þ°æ£© ÖÐ £¬11.8.4 ±Õ°üÓиöÀý×Ó

def counter(start_at=0):
count = [start_at]
def incr():
count[0] += 1
return count[0]
return incr

ÄѵÀÆäÖÐcount[] ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ