»°ËµPython£¨Ò»£©
С°×ºÍС²ËÊÇ´óѧͬѧ£¬Õâ²»¿ìÒª±ÏÒµÁË£¬Á©ÈËÒ»ºÏ¼Æ£¬ÕÒ¸öÅàѵ°àѧµã¶«Î÷£¬Îä×°Ò»ÏÂÍ·ÄÔ£¬Ë³±ã½â¾ö¾ÍÒµÎÊÌâ¡£
“ÄãÃÇÒª±¨Äĸö°à°¡£¿”½Ó´ýËûÃǵÄÄêÇáС½ãÈÈÐĵØÎʵÀ¡£
“ÄãÃÇÕâÀïÄĸö°à×îºÃ£¿”С°×²»¼Ù˼Ë÷µØ˵£¬“µ±È»ÊDZ¨×îºÃµÄ°àÀ²¡£”
“ÎÒÃǹ«Ë¾µÄÅàѵÏîÄ¿¶¼ºÜºÃ”С½ãЦµÀ£¬“²»¹ýC++ºÍJavaµÄÅàѵ°à×î»ðÁË£¬C++ÓÐMFC¡¢.Net·½Ïò£¬JavaÓÐSpring¡¢Hibernate……”¡£
“»¹ÓÐûÓбðµÄ£¿”С²Ë´ò¶ÏÁËËýµÄ»°£¬“¼òµ¥µãµÄ£¬ºÙºÙ¡£”
С½ã·ÁË·×ÀÍ·µÄÎļþ£¬»Ø´ðµÀ£º“Ŷ£¬Óа¡¡£ÎÒÃǹ«Ë¾Ð¿ªÁËÒ»¸öPythonÅàѵ°à£¬ÎÒ¸øÄãÃÇ¿´Ò»Ï½éÉÜ¡£”˵×Å£¬Ð¡½ã½«²ÄÁϽ»¸øÁ½ÈË¡£
“Google BitTorrent Nokia”С°×¶Á×ÅÒ»¸ö¸ö¶úÊìµÄÃû×Ö£¬ÑÛ¾¦ÕöµÃ´ó´óµÄ¡£
“¼òµ¥µÄÓïÑÔ£¬Óï·¨±í´ïÓÅÃÀÒ׶Á”£¬Ð¡²ËÄî×ÅÕâЩ£¬Ëƺõ·Â·ðÕÒµ½ÁËÖª¼º¡£
ÕâÑù£¬°×²Ë¶þÈË×éÀ´µ½ÁËPythonµÄ¿ÎÌá£
ÊڿεÄÀÏʦÃû½Ð´óÅ££¬ÓµÓÐ5ÄêµÄPython±à³Ì¾Ñ飬ͬʱ¾«Í¨C/C++ºÍÍøÂç±à³Ì¡£
Hello World£¡
ÈÃÎÒÃÇ¿´¿´PythonÈçºÎʵÏÖµÚÒ»¸öÀý³Ì¡£
´Ó“¿ªÊ¼”->“³ÌÐò”ÀïÔËÐÐPython IDLE£¨ÕâÊÇPythonÄÚÖõÄIDE£©£¬»á³öÏÖÒ»¸öShell£¬ÓÐÈçÏÂÐÅÏ¢£º
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
ÔÚ >>> ºóÊäÈ룺print ("hello world!")
ÆÁÄ»»á³öÏÖ
>>> print ("hello world!") #ÕâÊǸղÅÊäÈëµÄÄÚÈÝ
hello world!
“ÊDz»ÊǺܼòµ¥°¡£¡”´óÅ£ÀÏʦÍê³ÉÁËÒ»¸öÖøÃûµÄ“ÏîÄ¿”£ºhello world!
“ print ("I love money!") ²»£¬Ó¦¸ÃÊÇ print("Money love me!")”С°×Ð˷ܵØÇÃ׿üÅÌ£¬¸ù±¾Ã»ÓÐÌý¼û¡£
“ÕâÒ²½Ð³ÌÐò£¿ÆСº¢µÄ°É£¡”С²ËºÜ²»ÔÚºõ¡£
ÎÒÃÇÖªµÀ,ÔÚC\C++¡¢JavaÖУ¬±ØÐëÒªÓÐÈë¿Úº¯Êý£¬³ÌÐò¶¼»á´ÓÈë¿Úº¯Êý´¦¿ªÊ¼Ö´ÐУ¬µ«PythonΪʲôƫƫÕû³ÉÕâ¸öÑù×Ó£¿¿´ÆðÀ´²»ÏñÊǸö³ÌÐò°¡£¡
ÕâÖÖ»·¾³±»³Æ×÷½»»¥Ê½Shell£¬½Ó´¥¹ýLinux Shell ¡¢Matlab»òÕßWindows CMDµÄͬѧӦ¸Ã²»»áÄ°Éú¡£ÕâÖÖÐÎʽ¸ü¶àµÄÓÃÔÚ¿Æѧ¼ÆË㡢ϵͳ½Å±¾ºÍ¿ÎÌýÌѧÖС£ÔÚºóÃæµÄ¿Î³ÌÀÎ
Ïà¹ØÎĵµ£º
http://bbs.chinaunix.net/thread-1586782-1-1.html
ÎÒ¸Õ¸ÕÓÃpythonдÁËÒ»¶Î²Ù×÷excelµÄ½Å±¾£¬Ä¿µÄÊÇ°ÑÒ»¸öexcelÎļþ°´ÕÕijһÁÐÖеÄ×ֶβð·Ö³É¶à¸öÎļþ£¬ÀýÈç°´ÕÕ³ÇÊлòÕßÊ¡·ÝµÈ£¬µ«ÊÇ·¢ÏÖ´¦ÀíÒ»¸ö1700ÐеÄÎļþ²ð·Ö³É40¶à¸öÎļþʱҪÔËÐÐ30·ÖÖÓ×óÓÒ£¬ÐÔÄÜÌ«Âý£¬Çë¸ßÊÖ°ïæ¿´¿´Ôõô²ÅÄÜÓÅ»¯ÐÔÄÜ£¬Ð»Ð»¡£
ÐÂÊÖдµÄ½Å±¾£¬Çë²» ......
python µÄÄÚǶtimeÄ£°å·Ò뼰˵Ã÷
Ò»¡¢¼ò½é
timeÄ£¿éÌṩ¸÷ÖÖ²Ù×÷ʱ¼äµÄº¯Êý
˵Ã÷£ºÒ»°ãÓÐÁ½ÖÖ±íʾʱ¼äµÄ·½Ê½:
µÚÒ»ÖÖÊÇʱ¼ä´ÁµÄ·½Ê½(Ïà¶ÔÓÚ1970.1.1 00:00:00ÒÔÃë¼ÆËãµÄÆ«ÒÆÁ¿),ʱ¼ä´ÁÊÇΩһµÄ
µÚ¶þÖÖÒÔÊý× ......
ÓÉÓÚ¹¤×÷ÐèÒª£¬ÓÖҪѧϰеĿª·¢ÓïÑÔ-Python£¬ ÓïÑÔѧ¹ý¼¸ÖÖÁË£¬ ¸Ð¾õ»¹ÊÇÓкöàÏàËƵĵط½£¬ Õâ¸öPython¸Ð¾õ¾Í¸úJavaÓкöàÏàͨµÄµØ·½£¬ Ê×ÏÈÄã¿ÉÒÔÔÚEclipseÉÏͨ¹ýÅäÖúóÀ´¿ª·¢Python¡£ÕâÀïÎÒÌý´ÓÁËÀÏ´óµÄ½¨Ò飬ÅäÖÃÁËÒ»¸öFlexBuilder ×÷ΪPythonµÄIDE½øÐпª·¢¡£
Ä¿Ç°¸Õ¿ªÊ¼Ñ§Ï°PythonµÄ»ù±¾Óï·¨£¬ ½ñÌìÖ÷Òª¿´ÁËÒ»ÏÂPyth ......
RubyºÍPythonµÄÓï·¨±È½Ï
ÆäʵRubyºÍPython·Ç³£½Ó½ü£¬±È´ó¶àÊý±ðµÄÓïÑÔÒª½Ó½üµÄ¶à£¬ËùÒÔϲ»¶ÓÃɶ¾ÍÓÃɶ£¨´óʵ»°£¬ËäȻҲÊÇ·Ï»°£©¡£Óï·¨ÉϵIJî±ðËäÈ»ÓÐÄÇôһµã£¬´ó²¿·ÖÊÇsyntax sugar£¬ÎÒ¶·µ¨ÉÔ΢Áм¸¸ö£¨pythonÎÒÒ²ÍüµÃ²î²»¶àÁË£¬²»¶ÔµÄ´ó¼Ò¾¡¹ÜÀ´±Þʬ°É£©£¬µ«ÊÇÖ÷Òª²îÒ컹ÊÇÉè¼Æ˼ÏëÉϵģºÁé»î ......