锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩中文字幕久久伊人,婷婷久久五月天,久久午夜羞羞影院免费观看http://www.shnenglu.com/alantop/category/21240.html閲忓寲瓚嬪娍浜ゆ槗zh-cnSun, 08 Sep 2019 12:37:58 GMTSun, 08 Sep 2019 12:37:58 GMT60榪愯pip 鍑虹幇Fatal error in launcher錛歎nable to create process using 閿欒鐨勮В鍐蟲柟娉?/title><link>http://www.shnenglu.com/alantop/archive/2019/09/08/216802.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 08 Sep 2019 10:02:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2019/09/08/216802.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/216802.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2019/09/08/216802.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/216802.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/216802.html</trackback:ping><description><![CDATA[閫犳垚姝ゅ師鍥犳槸瀹夎浜嗗涓増鏈紝鍐茬獊銆?br />python3涓?br /><br /><strong style="margin: 0px; padding: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: #fefef2;"><span style="margin: 0px; padding: 0px; line-height: 1.5; font-size: 16px;">python -m pip install --upgrade pip</span></strong><img src ="http://www.shnenglu.com/alantop/aggbug/216802.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2019-09-08 18:02 <a href="http://www.shnenglu.com/alantop/archive/2019/09/08/216802.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>pycharm 2019.2.1 娉ㄥ唽鏂規(guī)硶http://www.shnenglu.com/alantop/archive/2019/09/08/216799.htmlAlanTopAlanTopSun, 08 Sep 2019 01:44:00 GMThttp://www.shnenglu.com/alantop/archive/2019/09/08/216799.htmlhttp://www.shnenglu.com/alantop/comments/216799.htmlhttp://www.shnenglu.com/alantop/archive/2019/09/08/216799.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/216799.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/216799.html鑿滃崟涓紪杈?br />-javaagent:C:\Program Files\JetBrains\PyCharm 2019.2.1\bin\jetbrains-agent.jar

杈撳叆娉ㄥ唽鐮?br />
3AGXEJXFK9-eyJsaWNlbnNlSWQiOiIzQUdYRUpYRks5IiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly96aGlsZS5pbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJQUyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJHTyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJETSIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJDTCIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7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b3DQEBCwUAA4ICAQBonMu8oa3vmNAa4RQP8gPGlX3SQaA3WCRUAj6Zrlk8AesKV1YSkh5D2l+yUk6njysgzfr1bIR5xF8eup5xXc4/G7NtVYRSMvrd6rfQcHOyK5UFJLm+8utmyMIDrZOzLQuTsT8NxFpbCVCfV5wNRu4rChrCuArYVGaKbmp9ymkw1PU6+HoO5i2wU3ikTmRv8IRjrlSStyNzXpnPTwt7bja19ousk56r40SmlmC04GdDHErr0ei2UbjUua5kw71Qn9g02tL9fERI2sSRjQrvPbn9INwRWl5+k05mlKekbtbu2ev2woJFZK4WEXAd/GaAdeZZdumv8T2idDFL7cAirJwcrbfpawPeXr52oKTPnXfi0l5+g9Gnt/wfiXCrPElX6ycTR6iL3GC2VR4jTz6YatT4Ntz59/THOT7NJQhr6AyLkhhJCdkzE2cob/KouVp4ivV7Q3Fc6HX7eepHAAF/DpxwgOrg9smX6coXLgfp0b1RU2u/tUNID04rpNxTMueTtrT8WSskqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxDTRvv+krbwMr26SB/40BjpMUrDRCeKuiBahC0DCoU/4+ze1l94wVUhdkCfL0GpJrMSCDEK+XEurU18Hb7WT+ThXbkdl6VpFdHsRvqAnhR2g4b+Qzgidmuky5NUZVfEaZqV/g==


AlanTop 2019-09-08 09:44 鍙戣〃璇勮
]]>
python3 鑾峰彇紜歡淇℃伅 鍔犲瘑 娉ㄥ唽鍔熻兘http://www.shnenglu.com/alantop/archive/2019/01/06/216170.htmlAlanTopAlanTopSun, 06 Jan 2019 04:51:00 GMThttp://www.shnenglu.com/alantop/archive/2019/01/06/216170.htmlhttp://www.shnenglu.com/alantop/comments/216170.htmlhttp://www.shnenglu.com/alantop/archive/2019/01/06/216170.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/216170.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/216170.html
import os, sys
import wmi
import hashlib
import base64
c = wmi.WMI()
#澶勭悊鍣?/div>
def printCPU():
    tmpdict = {}
    tmpdict["CpuCores"] = 0
    for cpu in c.Win32_Processor():     
        tmpdict["cpuid"] = cpu.ProcessorId.strip()
        tmpdict["CpuType"] = cpu.Name
        tmpdict['systemName'] = cpu.SystemName
        try:
            tmpdict["CpuCores"] = cpu.NumberOfCores
        except:
            tmpdict["CpuCores"] += 1
        tmpdict["CpuClock"] = cpu.MaxClockSpeed 
        tmpdict['DataWidth'] = cpu.DataWidth
    print (tmpdict)
    return  tmpdict
#涓繪澘
def printMain_board():
    boards = []
    # print len(c.Win32_BaseBoard()):
    for board_id in c.Win32_BaseBoard():
        tmpmsg = {}
        tmpmsg['UUID'] = board_id.qualifiers['UUID'][1:-1]   #涓繪澘UUID,鏈夌殑涓繪澘榪欓儴鍒嗕俊鎭彇鍒頒負(fù)絀哄鹼紝ffffff-ffffff榪欐牱鐨?/div>
        tmpmsg['SerialNumber'] = board_id.SerialNumber                #涓繪澘搴忓垪鍙?/div>
        tmpmsg['Manufacturer'] = board_id.Manufacturer       #涓繪澘鐢熶駭鍝佺墝鍘傚
        tmpmsg['Product'] = board_id.Product                 #涓繪澘鍨嬪彿
        boards.append(tmpmsg)
    print (boards)
    return boards
#BIOS
def printBIOS():
    bioss = []
    for bios_id in c.Win32_BIOS():
        tmpmsg = {}
        tmpmsg['BiosCharacteristics'] = bios_id.BiosCharacteristics   #BIOS鐗瑰緛鐮?/div>
        tmpmsg['version'] = bios_id.Version                           #BIOS鐗堟湰
        tmpmsg['Manufacturer'] = bios_id.Manufacturer.strip()                 #BIOS鍥轟歡鐢熶駭鍘傚
        tmpmsg['ReleaseDate'] = bios_id.ReleaseDate                   #BIOS閲婃斁鏃ユ湡
        tmpmsg['SMBIOSBIOSVersion'] = bios_id.SMBIOSBIOSVersion       #緋葷粺綆$悊瑙勮寖鐗堟湰
        bioss.append(tmpmsg)
    print (bioss)
    return bioss
#紜洏
def printDisk():
    disks = []
    for disk in c.Win32_DiskDrive():
        # print disk.__dict__
        tmpmsg = {}
        tmpmsg['SerialNumber'] = disk.SerialNumber.strip()
        tmpmsg['DeviceID'] = disk.DeviceID
        tmpmsg['Caption'] = disk.Caption
        tmpmsg['Size'] = disk.Size
        tmpmsg['UUID'] = disk.qualifiers['UUID'][1:-1]
        disks.append(tmpmsg)
    for d in disks:
        print (d)
    return disks
#鐢墊睜淇℃伅錛屽彧鏈夌瑪璁版湰鎵嶄細(xì)鏈夌數(shù)姹犻夐」
def printBattery():
    isBatterys = False
    for b in c.Win32_Battery():
        isBatterys = True
    return isBatterys
#緗戝崱mac鍦板潃錛?/div>
def printMacAddress():
    macs = []
    for n in  c.Win32_NetworkAdapter():
        mactmp = n.MACAddress
        if mactmp and len(mactmp.strip()) > 5:
            tmpmsg = {}
            tmpmsg['MACAddress'] = n.MACAddress
            tmpmsg['Name'] = n.Name
            tmpmsg['DeviceID'] = n.DeviceID
            tmpmsg['AdapterType'] = n.AdapterType
            tmpmsg['Speed'] = n.Speed
            macs.append(tmpmsg)
    print (macs)
    return macs
if __name__ == '__main__':
   
    hd1=printCPU()
    
    hd3=printMain_board()
    #printBIOS()
    #printDisk()
    hd2=printMacAddress()
    print(type(hd1))
    print(type(hd2))
    print(type(hd3))
    print(hd1['cpuid'],hd1['systemName'],hd2[0]['MACAddress'],hd3[0]['UUID'],hd3[0]['SerialNumber'])
    sum = hd1['cpuid'] + hd1['systemName'] + hd2[0]['MACAddress'] + hd3[0]['UUID']+ hd3[0]['SerialNumber']
    shastr = sum.encode('gbk')
    sha = hashlib.sha1(shastr).hexdigest()
    if (sha == 'b696fcbb46e27a09458019942dd10856b0023fea'):
        print('reg user')
    else:
        print('no reg user')
        
    print(sha)
    #print(sum)
    #print(type(sum))
    s1 = base64.encodestring(shastr)
    print(s1)
    #s2 = base64.decodestring(s1)
    #print(s1,s2)
    #print (printBattery())


AlanTop 2019-01-06 12:51 鍙戣〃璇勮
]]>pycharm 2018.3 涓撲笟鐗堟敞鍐岀爜http://www.shnenglu.com/alantop/archive/2018/12/30/216155.htmlAlanTopAlanTopSun, 30 Dec 2018 03:58:00 GMThttp://www.shnenglu.com/alantop/archive/2018/12/30/216155.htmlhttp://www.shnenglu.com/alantop/comments/216155.htmlhttp://www.shnenglu.com/alantop/archive/2018/12/30/216155.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/216155.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/216155.html1.淇敼hosts
0.0.0.0 account.jetbrains.com
2.杞歡涓緭鍏ュ涓嬫敞鍐岀爜錛堟敞鍐屾棩鏈熷埌2019.05錛?br />K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiRFBOIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0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nKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==


AlanTop 2018-12-30 11:58 鍙戣〃璇勮
]]>瑙e喅nohup 杈撳嚭涓嶅甫python print鐨勮緭鍑洪棶棰?/title><link>http://www.shnenglu.com/alantop/archive/2018/12/19/216127.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 19 Dec 2018 02:40:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/12/19/216127.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/216127.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/12/19/216127.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/216127.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/216127.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.shnenglu.com/alantop/archive/2018/12/19/216127.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/alantop/aggbug/216127.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-12-19 10:40 <a href="http://www.shnenglu.com/alantop/archive/2018/12/19/216127.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>gvim 閰嶇疆python榪愯鐜http://www.shnenglu.com/alantop/archive/2018/12/08/216111.htmlAlanTopAlanTopSat, 08 Dec 2018 07:04:00 GMThttp://www.shnenglu.com/alantop/archive/2018/12/08/216111.htmlhttp://www.shnenglu.com/alantop/comments/216111.htmlhttp://www.shnenglu.com/alantop/archive/2018/12/08/216111.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/216111.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/216111.html :!python % autocmd BufRead *.py nmap :make autocmd BufRead *.py copen "濡傛灉鏄痯y鏂囦歡錛屽垯鍚屾椂鎵撳紑緙栬瘧淇℃伅紿楀彛 灝嗕笂闈㈡嫹璐濆埌 C:\Program Files (x86)\Vim\_vimrc 鐨勬渶鍚庝竴琛?img src ="http://www.shnenglu.com/alantop/aggbug/216111.html" width = "1" height = "1" />

AlanTop 2018-12-08 15:04 鍙戣〃璇勮
]]>
python3 鍒囨崲鍒版寚瀹氱洰褰曟墽琛岀▼搴?/title><link>http://www.shnenglu.com/alantop/archive/2018/12/02/216105.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 02 Dec 2018 13:12:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/12/02/216105.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/216105.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/12/02/216105.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/216105.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/216105.html</trackback:ping><description><![CDATA[import os<br /><br />os.chdir('d:\\alantop_dir')<br />os.system('python alantop_dir_demo.py')<img src ="http://www.shnenglu.com/alantop/aggbug/216105.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-12-02 21:12 <a href="http://www.shnenglu.com/alantop/archive/2018/12/02/216105.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>python3浣跨敤chrome嫻忚鍣ㄦ墦寮鎸囧畾緗戦〉http://www.shnenglu.com/alantop/archive/2018/11/25/216079.htmlAlanTopAlanTopSun, 25 Nov 2018 10:20:00 GMThttp://www.shnenglu.com/alantop/archive/2018/11/25/216079.htmlhttp://www.shnenglu.com/alantop/comments/216079.htmlhttp://www.shnenglu.com/alantop/archive/2018/11/25/216079.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/216079.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/216079.htmlimport webbrowser 
chromePath = r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chromePath))
webbrowser.get('chrome').open('https://www.baidu.com',new=1,autoraise=True)


AlanTop 2018-11-25 18:20 鍙戣〃璇勮
]]>notepad ++ 閰嶇疆 python 鍜岃繍琛岀洰褰?/title><link>http://www.shnenglu.com/alantop/archive/2018/11/24/216077.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 24 Nov 2018 04:18:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/11/24/216077.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/216077.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/11/24/216077.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/216077.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/216077.html</trackback:ping><description><![CDATA[<span style="color: #333333; font-family: verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;">cmd /k cd /d "$(CURRENT_DIRECTORY)" &  python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT</span><img src ="http://www.shnenglu.com/alantop/aggbug/216077.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-11-24 12:18 <a href="http://www.shnenglu.com/alantop/archive/2018/11/24/216077.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍗囩駭pip澶辮觸瑙e喅鏂規(guī)http://www.shnenglu.com/alantop/archive/2018/08/12/215838.htmlAlanTopAlanTopSun, 12 Aug 2018 01:55:00 GMThttp://www.shnenglu.com/alantop/archive/2018/08/12/215838.htmlhttp://www.shnenglu.com/alantop/comments/215838.htmlhttp://www.shnenglu.com/alantop/archive/2018/08/12/215838.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215838.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215838.html闃呰鍏ㄦ枃

AlanTop 2018-08-12 09:55 鍙戣〃璇勮
]]>
python3 浠庢枃浠朵腑鎼滅儲鍖呭惈瀛楃涓茬殑琛?/title><link>http://www.shnenglu.com/alantop/archive/2018/05/23/215675.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 23 May 2018 07:11:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/05/23/215675.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/215675.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/05/23/215675.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/215675.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/215675.html</trackback:ping><description><![CDATA[<div></div><div>import codecs</div><div>FileName = r'c:\ls\1'</div><div>#KeyStr = input("the key string: ")</div><div>KeyStr = '<dd class="info"><span>鎵т笟璇佸彿錛?</div><div>FoundFlag = False<br />#鐢╱tf-8鏍煎紡鎵撳紑鏂囦歡</div><div></div><div>FileObj = codecs.open(FileName, 'r', 'utf-8')</div><div></div><div>LineTemp = FileObj.readline()</div><div>while LineTemp:</div><div>   # print(LineTemp)</div><div>   # print(KeyStr)</div><div></div><div>   # zc = LineTemp.find(KeyStr)</div><div>    </div><div>    if LineTemp.find(KeyStr) > 0:</div><div>        FoundFlag = True</div><div>        print("*************************")         </div><div>        print("the line is: " + LineTemp, end='')</div><div>        print("*************************")</div><div>        LineTemp = FileObj.readline()</div><div> #       break</div><div>    else:</div><div>        LineTemp = FileObj.readline()</div><div>FileObj.close()</div><div></div><div>if FoundFlag == False:</div><div>    print("Not found the string!")</div><div></div><img src ="http://www.shnenglu.com/alantop/aggbug/215675.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-05-23 15:11 <a href="http://www.shnenglu.com/alantop/archive/2018/05/23/215675.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>python3 浠庡悗鍙版縺媧誨埌鍓嶅彴 鎴浘http://www.shnenglu.com/alantop/archive/2018/05/19/215657.htmlAlanTopAlanTopSat, 19 May 2018 05:12:00 GMThttp://www.shnenglu.com/alantop/archive/2018/05/19/215657.htmlhttp://www.shnenglu.com/alantop/comments/215657.htmlhttp://www.shnenglu.com/alantop/archive/2018/05/19/215657.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215657.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215657.html濡傛灉鏄渶灝忓寲嬋媧誨埌鍓嶅彴錛屼笉鏄笅闈㈢殑浠g爜錛屼笅闈唬鐮佷粎鏄粠鍚庡彴嬋媧誨埌鍓嶅彴
    wrHd=win32gui.FindWindow(u'#32770',u'TeamViewer')
    print(win32gui.SetForegroundWindow(wrHd))
    from PIL import ImageGrab  
    bbox = (0, 0, 1160, 500)  
    im = ImageGrab.grab(bbox)  
    im.save('d:\\demo.png')  


AlanTop 2018-05-19 13:12 鍙戣〃璇勮
]]>python3 媯嫻嬭繘紼嬫槸鍚﹀瓨鍦?http://www.shnenglu.com/alantop/archive/2018/05/19/215656.htmlAlanTopAlanTopSat, 19 May 2018 04:06:00 GMThttp://www.shnenglu.com/alantop/archive/2018/05/19/215656.htmlhttp://www.shnenglu.com/alantop/comments/215656.htmlhttp://www.shnenglu.com/alantop/archive/2018/05/19/215656.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215656.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215656.html
import win32com.client  
  
def check_exsit(process_name):  
    WMI = win32com.client.GetObject('winmgmts:')  
    processCodeCov = WMI.ExecQuery('select * from Win32_Process where Name="%s"' % process_name)  
    if len(processCodeCov) > 0:  
        print ('%s is exists' % process_name)  
    else:  
        print ('%s is not exists' % process_name)  
  
if __name__ == '__main__':  
    check_exsit('360se.exe')  


AlanTop 2018-05-19 12:06 鍙戣〃璇勮
]]>
notepad++ 閰嶇疆pythonhttp://www.shnenglu.com/alantop/archive/2018/05/18/215655.htmlAlanTopAlanTopFri, 18 May 2018 12:41:00 GMThttp://www.shnenglu.com/alantop/archive/2018/05/18/215655.htmlhttp://www.shnenglu.com/alantop/comments/215655.htmlhttp://www.shnenglu.com/alantop/archive/2018/05/18/215655.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215655.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215655.htmlcmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT  

璁劇疆鍚嶇О錛岃緗揩鎹鋒柟寮?ctrl+shift+F5



AlanTop 2018-05-18 20:41 鍙戣〃璇勮
]]>
python3濡備綍鎵撳紑鍏抽棴CapsLockhttp://www.shnenglu.com/alantop/archive/2018/05/16/215643.htmlAlanTopAlanTopWed, 16 May 2018 10:17:00 GMThttp://www.shnenglu.com/alantop/archive/2018/05/16/215643.htmlhttp://www.shnenglu.com/alantop/comments/215643.htmlhttp://www.shnenglu.com/alantop/archive/2018/05/16/215643.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215643.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215643.html
pip install pywin32

import
win32api
import win32con

#win32api.keybd_event(20,0,win32con.WM_KEYDOWN,0)
#win32api.keybd_event(20,0,win32con.WM_KEYUP,0)
#win32api.keybd_event(17,0,win32con.KEYEVENTF_KEYUP,0)
win32api.keybd_event(20,0,0,0)
win32api.keybd_event(20,0,win32con.KEYEVENTF_KEYUP,0)


AlanTop 2018-05-16 18:17 鍙戣〃璇勮
]]>濡備綍鑾峰彇瑕佺殑鏀剁洏浠?瀹氭姇鏀剁泭鏈鍚?璁$畻鏂規(guī)硶http://www.shnenglu.com/alantop/archive/2018/02/27/215536.htmlAlanTopAlanTopTue, 27 Feb 2018 08:42:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/27/215536.htmlhttp://www.shnenglu.com/alantop/comments/215536.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/27/215536.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215536.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215536.htmlimport numpy as np
import pandas as pd
data_csv = pd.read_table('c:\\399300_3.csv',sep=',')
print("data_csv:")
print(data_csv)
絎竴涓?鏄儲寮曞?絎簩涓?鏄鐨勬敹鐩樹環(huán)
data_csv.ix[1][1] 

import numpy as np
import pandas as pd
data_csv = pd.read_table('c:\\399300_3.csv',sep=',')
print("data_csv:")
print(data_csv)
test = 10000 / data_csv.close 
test.sum()

import tushare as ts
df = ts.get_hist_data('000625', ktype='M')
#鐩存帴淇濆瓨
df.to_csv('c:/000625.csv')
#閫夋嫨淇濆瓨
df.to_csv('c:/000625_close.csv',columns=['close'])


AlanTop 2018-02-27 16:42 鍙戣〃璇勮
]]>
鑾峰彇鑲$エ鏈堢嚎http://www.shnenglu.com/alantop/archive/2018/02/27/215535.htmlAlanTopAlanTopTue, 27 Feb 2018 08:06:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/27/215535.htmlhttp://www.shnenglu.com/alantop/comments/215535.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/27/215535.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215535.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215535.htmlimport tushare as ts
a = ts.get_k_data('150228', ktype='60')
鑾峰彇鏈堢嚎

鑾峰彇浠g爜琛?br />
a = ts.get_stock_basics()

璇誨彇娌繁300鏁版嵁淇濆瓨鍦╡xcel涓璱mport tushare as ts
df = ts.get_hist_data('399300', ktype='M')
#鐩存帴淇濆瓨
df.to_csv('c:/399300.csv')
#閫夋嫨淇濆瓨
df.to_csv('c:/399300_2.csv',columns=['open','close'])



AlanTop 2018-02-27 16:06 鍙戣〃璇勮
]]>
python3 matplotlib緇樺浘http://www.shnenglu.com/alantop/archive/2018/02/27/215533.htmlAlanTopAlanTopTue, 27 Feb 2018 07:01:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/27/215533.htmlhttp://www.shnenglu.com/alantop/comments/215533.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/27/215533.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215533.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215533.htmlimport numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
 
# 閫氳繃rcParams璁劇疆鍏ㄥ眬妯旱杞村瓧浣撳ぇ灝?/div>
mpl.rcParams['xtick.labelsize'] = 24
mpl.rcParams['ytick.labelsize'] = 24
 
np.random.seed(42)
 
# x杞寸殑閲囨牱鐐?/div>
x = np.linspace(0, 5, 100)
 
# 閫氳繃涓嬮潰鏇茬嚎鍔犱笂鍣0鐢熸垚鏁版嵁錛屾墍浠ユ嫙鍚堟ā鍨嬪氨鐢▂浜?#8230;…
y = 2*np.sin(x) + 0.3*x**2
y_data = y + np.random.normal(scale=0.3, size=100)
 
# figure()鎸囧畾鍥捐〃鍚嶇О
plt.figure('data')
 
# '.'鏍囨槑鐢繪暎鐐瑰浘錛屾瘡涓暎鐐圭殑褰㈢姸鏄釜鍦?/div>
plt.plot(x, y_data, '.')
 
# 鐢繪ā鍨嬬殑鍥撅紝plot鍑芥暟榛樿鐢昏繛綰垮浘
plt.figure('model')
plt.plot(x, y)
 
# 涓や釜鍥劇敾涓璧?/div>
plt.figure('data & model')
 
# 閫氳繃'k'鎸囧畾綰跨殑棰滆壊錛宭w鎸囧畾綰跨殑瀹藉害
# 絎笁涓弬鏁伴櫎浜嗛鑹蹭篃鍙互鎸囧畾綰垮艦錛屾瘮濡?r--'琛ㄧず綰㈣壊铏氱嚎
# 鏇村灞炴у彲浠ュ弬鑰冨畼緗戯細(xì)http://matplotlib.org/api/pyplot_api.html
plt.plot(x, y, 'k', lw=3)
 
# scatter鍙互鏇村鏄撳湴鐢熸垚鏁g偣鍥?/div>
plt.scatter(x, y_data)
 
# 灝嗗綋鍓峟igure鐨勫浘淇濆瓨鍒版枃浠秗esult.png
plt.savefig('result.png')
 
# 涓瀹氳鍔犱笂榪欏彞鎵嶈兘璁╃敾濂界殑鍥炬樉紺哄湪灞忓箷涓?/div>
plt.show()


AlanTop 2018-02-27 15:01 鍙戣〃璇勮
]]>python3 numpyhttp://www.shnenglu.com/alantop/archive/2018/02/27/215532.htmlAlanTopAlanTopTue, 27 Feb 2018 06:52:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/27/215532.htmlhttp://www.shnenglu.com/alantop/comments/215532.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/27/215532.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215532.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215532.htmlimport numpy as np
a = np.array([1,2,3])
b = a*2

import numpy as np
a = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])
b = a*2


AlanTop 2018-02-27 14:52 鍙戣〃璇勮
]]>python pandas 璇誨彇excelhttp://www.shnenglu.com/alantop/archive/2018/02/27/215531.htmlAlanTopAlanTopTue, 27 Feb 2018 06:42:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/27/215531.htmlhttp://www.shnenglu.com/alantop/comments/215531.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/27/215531.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215531.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215531.html娉ㄦ剰csv鏂囦歡蹇呴』鏄痷tf-8錛屽鏋滀笉鏄紝鍏堣漿鎹㈡枃浠舵牸寮忋傦紙鏈夊墠闈tf-8錛?br />import numpy as np
import pandas as pd
data_csv = pd.read_table('c:\\2.csv',sep=',')
print("data_csv:")
print(data_csv)


浼犵粺璇誨彇csv鏂囦歡鏂規(guī)硶
import csv
csvFile = open("c:\\1.csv","r")
reader = csv.reader(csvFile)  # 榪斿洖鐨勬槸榪唬綾誨瀷
data = []
for item in reader:
    print(item)
    data.append(item)
print(data,"3")
print(data[0],"2")  
print(data[0][0],"1")
csvFile.close()


AlanTop 2018-02-27 14:42 鍙戣〃璇勮
]]>python 鎿嶄綔鍏朵粬榪涚▼鎺т歡http://www.shnenglu.com/alantop/archive/2018/02/26/215526.htmlAlanTopAlanTopMon, 26 Feb 2018 04:35:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/26/215526.htmlhttp://www.shnenglu.com/alantop/comments/215526.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/26/215526.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215526.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215526.html

1.濡備綍鍒╃敤鍙ユ焺鎿嶄綔windows紿椾綋

棣栧厛錛岃幏寰楃獥浣撶殑鍙ユ焺  win32api.FindWindows()

絎簩錛岃幏寰楃獥浣撲腑鎺т歡鐨刬d鍙鳳紝spy++

絎笁錛屾牴鎹帶浠剁殑ID鑾峰緱鎺т歡鐨勫彞鏌勶紙hwnd)  GetDlgItem(hwnd,loginID)

鏈鍚庯紝鍒╃敤鎺т歡鍙ユ焺榪涜鎿嶄綔

python鍙互閫氳繃win32api杞繪澗鑾峰彇鎺т歡鐨勫睘鎬у?/p>

閫氳繃鏍囩鎵懼埌涓葷獥鍙e彞鏌勶紝鐒跺悗閫氳繃涓誨彞鏌勮幏鍙栦笅灞炴帶浠跺彞鏌?/p>

#-*- coding: utf-8 -*-  ##璁劇疆緙栫爜鏂瑰紡

import win32api,win32gui,win32con

label = 'tt' #姝ゅ鍋囪涓葷獥鍙e悕涓簍t

hld = win32gui.FindWindow(None, label)

if hld > 0:

    dlg = win32api.FindWindowEx(hld, None, 'Edit', None)#鑾峰彇hld涓嬬涓涓負(fù)edit鎺т歡鐨勫彞鏌?/p>

    buffer = '0' *50

    len = win32gui.SendMessage(dlg, win32con.WM_GETTEXTLENGTH)+1 #鑾峰彇edit鎺т歡鏂囨湰闀垮害

    win32gui.SendMessage(dlg, win32con.WM_GETTEXT, len, buffer) #璇誨彇鏂囨湰

    print buffer[:len-1]

    #铏氭嫙榧犳爣鐐瑰嚮鎸夐挳(鎴栬呭洖杞?

    btnhld = win32api.FindWindowEx(hld, None,'Button', None)

    # win32gui.PostMessage(btnhld, win32con.WM_KEYDOWN, win32con.VK_RETURN, 0)#鐏嫄鏈夋晥

    # win32gui.PostMessage(btnhld, win32con.WM_KEYUP, win32con.VK_RETURN, 0)

    win32gui.PostMessage(btnhld, win32con.WM_LBUTTONDOWN, win32con.MK_LBUTTON, 0)#璋鋒瓕鏈夋晥錛岀伀鐙愭棤鏁?/p>

    win32gui.PostMessage(btnhld, win32con.WM_LBUTTONUP, win32con.MK_LBUTTON, 0)

    #鑾峰彇鏄劇ず鍣ㄥ睆騫曞ぇ灝?/p>

    width = win32api.GetSystemMetrics(win32con.SM_CXSCREEN)

    height = win32api.GetSystemMetrics(win32con.SM_CYSCREEN)


#鐐瑰嚮紿楀彛button
w=win32ui.FindWindow(clsname,windowtitle)
b=w.GetDlgItem(紿楀彛id)
b.postMessage(win32con.BM_CLICK)


#鍏抽棴紿椾綋
import win32ui
import win32con
wnd=win32ui.FindWindow(classname,None)
wnd.SendMessage(win32con.WM_CLOSE)  鎴愬姛錛?br />
import win32ui
w=win32ui.FindWindow(classname,紿椾綋title)
print w.GetDlgItemText(0xFFFF)  # 鑾峰緱寮圭獥閲岀殑娑堟伅鏂囧瓧

鏈灝忓寲紿椾綋
w=win32gui.FindWindow()
win32gui.CloseWindow(w)



AlanTop 2018-02-26 12:35 鍙戣〃璇勮
]]>
python 鍦ㄩ噾铻嶅垎鏋愮敤鐨勫簲鐢?/title><link>http://www.shnenglu.com/alantop/archive/2018/02/24/215522.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 24 Feb 2018 06:14:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/02/24/215522.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/215522.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/02/24/215522.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/215522.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/215522.html</trackback:ping><description><![CDATA[<div>python3 鑾峰彇鍩洪噾鍙?qiáng)鍘嗗彶鍑鍊兼暟鎹?/div><div>http://blog.csdn.net/yuzhucu/article/details/55261024</div><div></div><div>瀹氭姇鍜孧atplotlib浣滃浘</div><div>http://blog.csdn.net/sero_qu/article/details/53267473</div><div></div><img src ="http://www.shnenglu.com/alantop/aggbug/215522.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-02-24 14:14 <a href="http://www.shnenglu.com/alantop/archive/2018/02/24/215522.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Python2涓嚜鍔ㄥ寲閿洏榧犳爣鐨勫簱 PyAutoGUI鍜孭ywinautohttp://www.shnenglu.com/alantop/archive/2018/02/11/215514.htmlAlanTopAlanTopSun, 11 Feb 2018 08:01:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/11/215514.htmlhttp://www.shnenglu.com/alantop/comments/215514.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/11/215514.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215514.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215514.htmlPython2涓嚜鍔ㄥ寲閿洏榧犳爣鐨勫簱  PyAutoGUI鍜孭ywinauto

AlanTop 2018-02-11 16:01 鍙戣〃璇勮
]]>
python3 tcpclient鍙戦?6榪涘埗http://www.shnenglu.com/alantop/archive/2018/02/06/215509.htmlAlanTopAlanTopTue, 06 Feb 2018 12:17:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/06/215509.htmlhttp://www.shnenglu.com/alantop/comments/215509.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/06/215509.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215509.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215509.html#!/usr/bin/env python3
#-*- coding:utf-8 -*-

from socket import *
import struct
import time

HOST ='192.168.1.74'

PORT = 60000

BUFFSIZE=2048

ADDR = (HOST,PORT)

tctimeClient = socket(AF_INET,SOCK_STREAM)

tctimeClient.connect(ADDR)

a=[0x55, 0xaa]
data=struct.pack("%dB"%(len(a)),*a)

while True:
#data = input(">")

#if not data:
#break
#tctimeClient.send(data.encode())
tctimeClient.send(data)
#time.sleep(10)
data = tctimeClient.recv(BUFFSIZE).decode()
if not data:
break
print(data)
tctimeClient.close()


AlanTop 2018-02-06 20:17 鍙戣〃璇勮
]]>
emeditor 閰嶇疆python鐜http://www.shnenglu.com/alantop/archive/2018/02/05/215504.htmlAlanTopAlanTopMon, 05 Feb 2018 08:17:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/05/215504.htmlhttp://www.shnenglu.com/alantop/comments/215504.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/05/215504.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215504.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215504.html
鏍囬:python
鍛戒護(hù):d:\python34\python.exe
鍙傛暟A: $(Path)
鍒濆鐩綍錛?(Dir)

鍕句腑錛?鍦ㄨ緭鍑烘爮涓樉紺?br />
緙栫爜錛歎TF-8


AlanTop 2018-02-05 16:17 鍙戣〃璇勮
]]>
python 璁塊棶 oracle 鍜?python gui鏁欑▼http://www.shnenglu.com/alantop/archive/2018/02/05/215503.htmlAlanTopAlanTopMon, 05 Feb 2018 07:40:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/05/215503.htmlhttp://www.shnenglu.com/alantop/comments/215503.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/05/215503.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215503.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215503.html#coding:utf-8 
import win32ui,win32con 
hWnd=win32ui.FindWindow('Notepad',None) 
hWnd.SendMessage(win32con.WM_SETTEXT,'hello world')  

http://www.cnblogs.com/shemingli/p/6344766.html python gui鏁欑▼
https://www.cnblogs.com/wHw-24/archive/2017/10/21/7706641.html python 璁塊棶 oracle



AlanTop 2018-02-05 15:40 鍙戣〃璇勮
]]>
Pycharm 璋冭瘯鎺у埗鍙頒貢鐮佺殑瑙e喅鏂規(guī)http://www.shnenglu.com/alantop/archive/2018/02/03/215498.htmlAlanTopAlanTopSat, 03 Feb 2018 04:08:00 GMThttp://www.shnenglu.com/alantop/archive/2018/02/03/215498.htmlhttp://www.shnenglu.com/alantop/comments/215498.htmlhttp://www.shnenglu.com/alantop/archive/2018/02/03/215498.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215498.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215498.htmlwin7 32浣?br />pycharm 2017.3.3
setting 涓?鎼滅儲 File Encodings 瀛楁錛屼慨鏀笹lobal Encoding涓簊ystem default:GBK,淇敼Project Encoding涓篠ystem Default:GBK.

AlanTop 2018-02-03 12:08 鍙戣〃璇勮
]]>
python 涓嬭澆win32api妯″潡http://www.shnenglu.com/alantop/archive/2018/01/31/215494.htmlAlanTopAlanTopWed, 31 Jan 2018 09:44:00 GMThttp://www.shnenglu.com/alantop/archive/2018/01/31/215494.htmlhttp://www.shnenglu.com/alantop/comments/215494.htmlhttp://www.shnenglu.com/alantop/archive/2018/01/31/215494.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215494.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215494.htmlpip install pypiwin32

AlanTop 2018-01-31 17:44 鍙戣〃璇勮
]]>
python 妯℃嫙榧犳爣 閿洏鎿嶄綔http://www.shnenglu.com/alantop/archive/2018/01/31/215493.htmlAlanTopAlanTopWed, 31 Jan 2018 08:25:00 GMThttp://www.shnenglu.com/alantop/archive/2018/01/31/215493.htmlhttp://www.shnenglu.com/alantop/comments/215493.htmlhttp://www.shnenglu.com/alantop/archive/2018/01/31/215493.html#Feedback0http://www.shnenglu.com/alantop/comments/commentRss/215493.htmlhttp://www.shnenglu.com/alantop/services/trackbacks/215493.html闃呰鍏ㄦ枃

AlanTop 2018-01-31 16:25 鍙戣〃璇勮
]]>
python ntp瀹㈡埛绔牎鏃?/title><link>http://www.shnenglu.com/alantop/archive/2018/01/31/215492.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 31 Jan 2018 08:08:00 GMT</pubDate><guid>http://www.shnenglu.com/alantop/archive/2018/01/31/215492.html</guid><wfw:comment>http://www.shnenglu.com/alantop/comments/215492.html</wfw:comment><comments>http://www.shnenglu.com/alantop/archive/2018/01/31/215492.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/alantop/comments/commentRss/215492.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/alantop/services/trackbacks/215492.html</trackback:ping><description><![CDATA[     鎽樿: python ntp瀹㈡埛绔牎鏃?nbsp; <a href='http://www.shnenglu.com/alantop/archive/2018/01/31/215492.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/alantop/aggbug/215492.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/alantop/" target="_blank">AlanTop</a> 2018-01-31 16:08 <a href="http://www.shnenglu.com/alantop/archive/2018/01/31/215492.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.czqxj.cn" target="_blank">久久久久亚洲AV无码麻豆</a>| <a href="http://www.jmjrt.cn" target="_blank">国产叼嘿久久精品久久</a>| <a href="http://www.zhangyiping.cn" target="_blank">国产亚洲精午夜久久久久久 </a>| <a href="http://www.mrzqjn.cn" target="_blank">久久综合久久综合久久综合</a>| <a href="http://www.shiyoulhg.cn" target="_blank">婷婷国产天堂久久综合五月</a>| <a href="http://www.baipe.cn" target="_blank">久久亚洲国产成人影院</a>| <a href="http://www.facpw.cn" target="_blank">久久精品国产一区二区三区 </a>| <a href="http://www.taiguolu.com.cn" target="_blank">久久精品国产亚洲7777</a>| <a href="http://www.grzzc358.cn" target="_blank">久久99国产精品99久久</a>| <a href="http://www.0s2yxuj0.net.cn" target="_blank">久久99国产精品久久99</a>| <a href="http://www.aaa62.cn" target="_blank">丁香五月综合久久激情</a>| <a href="http://www.upvd.cn" target="_blank">久久国产热这里只有精品</a>| <a href="http://www.hycv.cn" target="_blank">久久久久亚洲AV无码专区桃色</a>| <a href="http://www.panroad.cn" target="_blank">久久99精品久久久久久野外 </a>| <a href="http://www.yangrendong.com.cn" target="_blank">99麻豆久久久国产精品免费</a>| <a href="http://www.stargaze3s.cn" target="_blank">日韩精品久久久久久久电影蜜臀</a>| <a href="http://www.vcdordvd.cn" target="_blank">国产美女亚洲精品久久久综合</a>| <a href="http://www.qlswxflaw.cn" target="_blank">精品国产乱码久久久久久人妻</a>| <a href="http://www.dpbz.net.cn" target="_blank">亚洲欧美成人综合久久久</a>| <a href="http://www.news222.cn" target="_blank">日韩久久久久久中文人妻</a>| <a href="http://www.philadelphiausa.cn" target="_blank">欧美精品久久久久久久自慰</a>| <a href="http://www.chengrenshop.com.cn" target="_blank">日韩AV无码久久一区二区</a>| <a href="http://www.mlbj.net.cn" target="_blank">久久国产高清字幕中文</a>| <a href="http://www.desktx.cn" target="_blank">久久一本综合</a>| <a href="http://www.h6cpi0.cn" target="_blank">久久天天躁狠狠躁夜夜躁2O2O</a>| <a href="http://www.hzjslh.cn" target="_blank">色偷偷888欧美精品久久久</a>| <a href="http://www.2pt.com.cn" target="_blank">久久99精品久久久久久野外</a>| <a href="http://www.callmanager.cn" target="_blank">一本久久综合亚洲鲁鲁五月天</a>| <a href="http://www.baifeng.net.cn" target="_blank">久久久久亚洲AV片无码下载蜜桃</a>| <a href="http://www.ixlg.cn" target="_blank">久久99亚洲网美利坚合众国</a>| <a href="http://www.fouming.cn" target="_blank">精品无码久久久久久久久久</a>| <a href="http://www.093156.net.cn" target="_blank">一本色道久久88综合日韩精品</a>| <a href="http://www.woaisheying.cn" target="_blank">蜜臀av性久久久久蜜臀aⅴ麻豆</a>| <a href="http://www.bbcjk.cn" target="_blank">狠色狠色狠狠色综合久久</a>| <a href="http://www.ycs8.cn" target="_blank">青青草原综合久久大伊人导航</a>| <a href="http://www.wodedaxue.com.cn" target="_blank">一本久道久久综合狠狠爱</a>| <a href="http://www.uqknet.cn" target="_blank">久久综合久久综合久久</a>| <a href="http://www.adpz.cn" target="_blank">伊人久久大香线蕉综合影院首页</a>| <a href="http://www.gongcheng100.cn" target="_blank">青青草原1769久久免费播放</a>| <a href="http://www.aeuou.cn" target="_blank">亚洲国产另类久久久精品</a>| <a href="http://www.byrrj.cn" target="_blank">精品久久久久中文字</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>