LinuxÏÂpython lxmlÄ£¿éµÄ°²×°
ÐèÒªÏÈ°²×°libxml2-devel libxslt-develÕâÁ½¸örpm°ü£¬Èç¹ûʹÓ÷ÇrootÓû§°²×°£¬¿ÉÒÔÏÂÔØlibxml2ºÍlibxsltµÄÔ´´úÂë½øÐа²×°¡£ libxml2-devel¡¢libxslt-devel×°ºÃºó£¬½âѹlxmlµÄ°ü£¬Çл»µ½Õâ¸ö°üµÄ·¾¶¡£
¼ÓÈëCFLAGS½øÐбàÒëºÍ°²×°£¬ÔÚshellÏÂÒÀ´ÎÊäÈëÈçÏÂÃüÁ CFLAGS=-I/usr/include/libxml2:/usr/include/libxslt/ python2.6 setup.py build
CFLAGS=-I/usr/include/libxml2:/usr/include/libxslt/ python2.6 setup.py install
Ïà¹ØÎĵµ£º
Íò¶ñµÄ±àÂë
С²Ë¶ÔÓÚÀÏʦÉÏÒ»½Ú½²µÄ²»ÊǺÜÃ÷°×£¬ÒòΪûÓÐÒ»±¾ÊéÊǽ«ÎļþÓëwebÒ»Æð½²Êڵģ¬Ëû¾ö¶¨×Ô¼ºÌ½¾¿Ò»ÏÂËüÃÇÖ®¼äµÄ²»Í¬£º
Ê×ÏÈ£¬Ð¡²ËÔÚCÅ̽¨ÁËÒ»¸öÎı¾Îĵµ file.txt,ÊäÈëËĸö×Ö£ºÎÒÊÇС²Ë¡£
È»ºó£¬Ð¡²ËÔÚshellÖÐÁ·Ï°ÆðÀ´£º
>>> file=open("c:\\file.txt","r")
>>> data=file.read()
>> ......
Written by shine
on 2009, April 23, 12:29 PM. Linux
WebminÊÇÄ¿Ç°¹¦ÄÜ×îÇ¿´óµÄ»ùÓÚWebµÄUnixϵͳ¹ÜÀí¹¤¾ß¡£¹ÜÀíԱͨ¹ýä¯ÀÀÆ÷·ÃÎÊWebminµÄ¸÷ÖÖ¹ÜÀí¹¦Äܲ¢Íê³ÉÏàÓ¦µÄ¹ÜÀí¶¯×÷¡£Ä¿Ç° WebminÖ§³Ö¾ø´ó¶àÊýµÄUnixϵͳ£¬ÕâЩϵͳ³ýÁ˸÷ÖÖ°æ±¾µÄlinux
ÒÔΪ»¹°üÀ¨£ºAIX¡¢HPUX¡¢Solaris¡¢Unixware¡¢Irix ºÍFreeBSDµÈ¡£
Webmin ......
Í·Îļþ£º
#ifndef _LED_CONFIG_H
#define _LED_CONFIG_H
#define LED_CON 0
#define LED_ON 1
#define LED_OFF 2
#endif
ÄÚºËÏÂÃæµÄÇý¶¯Ä£¿é£º
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/cdev.h>
#include <linux/fs.h>
......
ÈËÎïר·Ã£ººËÐĺڿÍϵÁÐÖ®Ò»Robert Love ÿ¸öÐÇÆÚ£¬ÎÒÃǶ¼²É·ÃÒ»¸öÄں˱àдÉçÇøµÄÈË£¬ËäÈ»ÕâÑùµÄ²É·Ã»áºÜ²àÖؼ¼Êõ£¬µ«ÊÇÎÒÃǵÄÁ¢×ãµãÊÇΪÁËÈÃËùÓÐÈ˶¼ÄܽÓÊÜ¡£±¾ÖÜÎÒÃDzɷÃÁËRobert Love£¬ÏÖÔÚËûÕýÔÚά»¤“¿ÉÇÀÕ¼Äں˔µÄÉý¼¶°üºÍÆäËûһЩÊ¡£ËûʹÓÃLinuxÒѾ7ÄêÁË£¬¶ÔÓÚÏÖÔÚµÄÄÚºËÓкܶ๱Ïס£ËùÓÐÕâЩ×îºóÓÃËû× ......