摘要:
1. mysql.connector Python version (8.0) can connect to MySQL Server version 8.0, 5.7, 5.6, and 5.5, can not connect to MySQL Server version 5.1 2. pym 阅读全文
摘要:
How to select rows from a DataFrame based on column values ... o select rows whose column value equals a scalar, some_value, use ==: df.loc[df['column 阅读全文
摘要:
Check if program runs in Debug mode 用以下函数即可: def is_debug(): gettrace = getattr(sys, 'gettrace', None) if gettrace is None: return False elif gettrace 阅读全文
摘要:
Git: Temporarily revert to previous commit If you want to go back to a previous commit, while keeping all of your other history, simply checkout that 阅读全文
摘要:
[Minor Bug] Pylint E1101 Module 'torch' has no 'from_numpy' member#701 For those using vscode, add to user settings "python.linting.pylintArgs": ["--e 阅读全文
摘要:
How to clone all remote branches in Git? First, clone a remote Git repository and cd into it: Next, look at the local branches in your repository: But 阅读全文