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

»°Ëµ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µÄͬѧӦ¸Ã²»»áÄ°Éú¡£ÕâÖÖÐÎʽ¸ü¶àµÄÓÃÔÚ¿Æѧ¼ÆË㡢ϵͳ½Å±¾ºÍ¿ÎÌýÌѧÖС£ÔÚºóÃæµÄ¿Î³ÌÀÎ


Ïà¹ØÎĵµ£º

ʹÓÃPython´¦ÀíExcel±í¸ñ

http://cocobear.info/blog/2009/01/16/use-python-deal-with-excel/
ʹÓÃPython´¦ÀíExcel±í¸ñ 2009Äê01ÔÂ16ÈÕ
¸ø°³µÄbossдµÄÒ»¸öС¹¤¾ß£¬Ê¹ÓÃPython¶ÔExcel½øÐÐͳ¼Æ£¬È»ºó°Ñ½áÊøÉú³ÉÒ»¸öеÄExcel±í¸ñ£¬Ê¹Óõ½ÁËxlrdºÍpyExceleratorÁ½¸ö¿â¡£
¼òµ¥µÄ½éÉÜÒ»ÏÂÕâÁ½¸ö¿â£¬ÏÈ˵xlrd£¬Õâ¸ö¿â¶ÁExcel±È½Ï·½±ã£¬¸÷ÖÖ·½·¨Ê¹ÓÃÆ ......

python²Ù×÷excel


¼ÈȻѡÔñÁËÔ¶·½£¬¾Í±ØÐëÈÕÒ¹¼æ³Ì http://wrsuifeng.javaeye.com
Python´úÂë
# Filename: excel.py   
import os,sys,time   
import win32com.client   
import traceback   
  
excel = win32com.client.Dispatch(" ......

python ²Ù×÷ms office Éú³É±¨¸æÏà¹Ø×ܽá


¹Ø¼ü×Ö: python com ±¨¸æ
http://appofis.javaeye.com/blog/417446
python ²Ù×÷ms office Éú³É±¨¸æÏà¹Ø×ܽá
I. ÏîÄ¿ÖÐÐèÒªÉú³ÉwordºÍexcel±¨¸æ£¬Í¨³£ÓÐÁ½ÖÖ·½·¨£º»ùÓÚ×Ö·û´®Æ´½ÓÒÔ¼°COMµ÷Óá£
1) ×Ö·û´®Æ´½ÓÉú³ÉofficeÎĵµµÄÔ­Àí£º officeÎĵµ±¾Éí¿ÉÒÔÌåÏÖΪxmlÎļþ¸ñʽ£¬ÓÈÆäÊÇMS Excel
2003£¬ÎÒÃÇ¿ÉÒÔ×Ô¼º½«Ò» ......

python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷

CSDNÕ¾ÄÚתÌû£º
http://blog.csdn.net/kiki113/archive/2009/03/28/4033017.aspx
python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷
  
Ò»¡¢¼ò½é
  timeÄ£¿éÌṩ¸÷ÖÖ²Ù×÷ʱ¼äµÄº¯Êý
  ˵Ã÷£ºÒ»°ãÓÐÁ½ÖÖ±íʾʱ¼äµÄ·½Ê½:
       µÚÒ»ÖÖÊÇʱ¼ä´ÁµÄ·½Ê½(Ïà¶ÔÓÚ1970.1.1 00:00:00ÒÔÃë¼ ......

תÌû£ºPython2.6 Ï°²×° mysql (Windows xp)

ת×Ô£º
http://hi.baidu.com/feng2211/blog/item/8b86b6d9816a3f2710df9b79.html
ºÍ
http://i.19830102.com/archives/164
Python °æ±¾£º2.6
ÏÂÔصØÖ·£ºhttp://www.python.org/download/releases/2.6.1/
ÏÂÔØmsiÎļþ²¢°²×°
MySQLdb°æ±¾£º MySQL-python-1.2.2.win32-py2.6.exe
ÏÂÔصØÖ·£ºhttp://home.netimperia.com/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ