prepare brand new instance Rocky Linux 9.0
bash -c "$(curl -fsSL http://download.pigsty.cc/get)"
cd ~/pigsty
./bootstrap
./configure
https://vonng.github.io/pigsty/#/PGSQL-ADMIN?id=adding-packages
prepare brand new instance Rocky Linux 9.0
bash -c "$(curl -fsSL http://download.pigsty.cc/get)"
cd ~/pigsty
./bootstrap
./configure
https://vonng.github.io/pigsty/#/PGSQL-ADMIN?id=adding-packages
| def _comb_1(last_subsets, elem, head, rest, full_result, current_subsets): | |
| new_subset = list(sorted(set(elem + head))) | |
| if new_subset not in full_result: | |
| full_result = full_result + [new_subset] | |
| current_subsets = current_subsets + [new_subset] | |
| if rest: | |
| return _comb_1( |
| def numbers(start=0): | |
| num = start | |
| while True: | |
| yield num | |
| num += 1 | |
| def primes(seq): | |
| num = next(seq) |
| # Standard Library | |
| import asyncio | |
| import random | |
| # Third Party Library | |
| import websockets | |
| from websockets.exceptions import ConnectionClosedError, ConnectionClosedOK | |
| class WebSocketRetry: |
| import numpy as np | |
| import random | |
| import matplotlib.pyplot as plt | |
| from matplotlib import animation | |
| ################################ | |
| # 修改这个alpha玩!其他代码不需要动! | |
| # 这个示意的例子跟真实ML不一样,alpha通常在0.001到0.1之间 |