menu

update October 22, 2019 at 01:28AM

date_range 21/10/2019 00:00

waa

kaggle限制每个账户gpu使用每周30小时

date_range 21/10/2019 00:00

kaggle限制每个账户gpu使用每周30小时,只能是珍惜点用了.colab根本就跑不动gpt2

[哼] ​

date_range 21/10/2019 00:00


@Terry与狗狗同行 : [哼] ​ October 21, 2019 at 08:09PM
via Weibo http://bit.ly/31yI4R1

导出pyqt设计器图片资源 pyqt5 import resources_rc 错误解决方案

date_range 17/10/2019 00:00

解决import resources_rc找不到的错误

python读取json

date_range 15/10/2019 00:00

import json

python获取文件绝对路径

date_range 15/10/2019 00:00

os.path.abspath

python快速查照文件

date_range 15/10/2019 00:00

>>> import glob >>> glob.glob(‘./*.py’) [‘./1.py’, ‘./3.py’, ‘./2.py’]

python删除文件

date_range 15/10/2019 00:00

import os

pyqt5界面防卡死

date_range 15/10/2019 00:00

 PyQt 的 QThread
import sysfrom PyQt5.QtCore import QThread, pyqtSignalfrom PyQt5.QtWidgets import QPushButton, QDialog, QApplicationclass BigThingThread(QThread):    finished_signal = pyqtSignal(str)    def __init__(self, rest, parent=None):        super().__init__(parent)        self._rest = rest    def run(self):        print('do something big')        time.sleep(self._rest)        self.finished_signal.emit('done')class MyDialog(QDialog):    def __init__(self, parent=None):        super().__init__(parent)        self.button = QPushButton(self)        self.button.setText('干大事')        self.button.clicked.connect(self._click_do_something)    @staticmethod    def _show_message(message):        print('{}'.format(message))    def _click_do_something(self):        self.big_thread = BigThingThread(1)        self.big_thread.finished_signal.connect(self._show_message)        self.big_thread.start()if __name__ == '__main__':    app = QApplication(sys.argv)    dialog = MyDialog()    dialog.show()    sys.exit(app.exec_())

编辑