• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            穩定盈利的期貨交易方法-量化趨勢交易

            alantop -專業量化投資者

            愛好:量化投資,逆向工程,滲透
            隨筆 - 595, 文章 - 0, 評論 - 921, 引用 - 0
            數據加載中……

            python3 定時重啟服務

            import os
            import time
            import time
            import datetime
            import codecs


            def get_min():
                return int(  time.strftime('%M', time.localtime(time.time())) )
                
            def get_hour():
                return int(  time.strftime('%H', time.localtime(time.time())) )
                
            def get_current_time():
                return ( str(datetime.datetime.now().year) + '-' + str(datetime.datetime.now().month) + '-' + str(datetime.datetime.now().day) + " " + time.strftime('%H:%M:%S',time.localtime(time.time())) )

            def writelog(content):
                print(content)
                f = codecs.open('reboot.log','a','utf-8')
                f.write(content)
                f.writelines('\r\n')
                f.flush()

            def rebootservice():
                os.system('net stop spooler')
                time.sleep(1)
                os.system('net start spooler')
                
            while True:
                print(get_current_time())
                if (  get_min() == 24  and get_hour() == 12 ):
                    writelog("重啟服務時間:" + get_current_time())
                    rebootservice()
                    time.sleep(60)
                time.sleep(10)

            posted on 2019-07-03 12:19 AlanTop 閱讀(676) 評論(0)  編輯 收藏 引用 所屬分類: 計算機應用

            亚洲国产另类久久久精品小说| 久久精品国产99久久久古代| 久久久久免费精品国产| 国产一区二区精品久久凹凸| 香蕉久久永久视频| 久久精品国产亚洲精品2020| 久久精品国产亚洲欧美| 亚洲中文字幕伊人久久无码 | 日韩久久久久中文字幕人妻 | 伊人久久大香线蕉亚洲| 久久91精品久久91综合| 久久久国产99久久国产一| 久久精品国产99国产精偷| 国产精品久久久久久久人人看| av国内精品久久久久影院| 色综合久久88色综合天天 | 国产午夜福利精品久久2021| 亚洲精品久久久www| 久久本道伊人久久| 久久精品亚洲日本波多野结衣| 久久久久久久久久免免费精品| 2022年国产精品久久久久| 国产精品久久久久a影院| 久久精品亚洲男人的天堂 | 久久精品国产只有精品66| 久久99精品久久只有精品| 久久精品国产99国产精品导航| 久久久久久国产精品无码下载| 国产日产久久高清欧美一区| 无遮挡粉嫩小泬久久久久久久| 久久午夜无码鲁丝片秋霞| 久久综合九色欧美综合狠狠| 国产精品日韩深夜福利久久| 久久婷婷国产麻豆91天堂| av午夜福利一片免费看久久| 久久精品水蜜桃av综合天堂| 久久亚洲精精品中文字幕| 天堂久久天堂AV色综合| 精品久久久久久无码专区不卡| 久久久久久午夜成人影院| 精品久久久久久国产潘金莲|