pythonÓÃsax °üÀ´½âÎöxml µÄÎÊÌâ ÇëÖ¸½Ì ¼± ¶àл
ÎÒÏëÓÃsax°üÀ´½âÎöxml, ÒªÇóÈçÏÂ:
Python code:
<?xml version="1.0" encoding="UTF-8"?>
<waf>
<policy> acl </policy>
<prot>
<dstip>2.2.2.2</dstip>
<dstip>3.3.3.3</dstip>
<dstport>80</dstport>
<srcip>3.3.3.3</srcip>
<srcport>8888</srcport>
<protocol>17</protocol>
</prot>
<other haha="google.com" test_case_id="1" >
<action>0</action>
<dstip>33333333</dstip>
<res>0</res>
<res a="b" b="2" >0</res>
<res a="c" b="3" c="4" >88</res>
<res a="b" b="2" >0</res>
</other>
<other heihei="google.com" test_case_id2="2" >
<res a="b" b="2" >0</res>
</other>
<other heihei3="baidu.com" test_case_id3="3" >
<res a="c" b="3">88</res>
<dd gg = "pengwei" >wpw</dd>
</other>
<m>
<w>
<dd gg = &qu
Ïà¹ØÎÊ´ð£º
ÎÒÓÃÁËdef CreateMyDialog(self):
dlg = MyDialog(None, -1, ''.decode('utf8'), (300,300), (300,200), wx.DEFAULT_DIALOG_STYLE | wx.DIALOG_NO_PARENT )
&nbs ......
¸÷λ¸ßÊÖ£¬ÄÄλÄÜд¸ö¼òµ¥µÄͨѶ¼£¬Ö»±£´æÐÕÃûºÍÊÖ»úºÅ£¬Äܱ£´æµ½Ó²Å̲¢¿É¶Á»Ø£¬ÓÐÌí¼Ó£¬É¾³ý£¬Ð޸쬲éѯ¹¦ÄÜ£¬ÃüÁîÐÐʽµÄ¾ÍÐÐ
ÕâÖÖ»îÄãµÃ×Ô¼º¸É£¬ÓÐÎÊÌâ¿ÉÒÔÎÊ£¬µ«²»»áÓÐÈ˰ïÄã×öµÄ¡£
¸øÄãÔ´Âë
http://dow ......
ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£
ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º
1¡¢·áºñµÄ¸å³ê¡£
2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£
3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......
´´½¨¿Ø¼þ
bt=tkinter.Button(root,text='button')
bt.place(x=5,y=5)
bt.place_forget() #Òþ²Ø¿Ø¼þ
ÈçºÎʹÒþ²ØµÄ¿Ø¼þÔÙ´ÎÏÔʾ³öÀ´
ÔÙ´Îbt.place()£¬²»ÐÐô£¿
ÔÙ´Îbt.place() »¹ÓÐ ......