08 2021 档案

摘要:## 对偶问题 * 原问题 $$ \begin{align} \min_{x \in \cal D} f(x) \end{align} $$ 其中 ${\cal D} = \{x \in X: g_i(x) \leq 0, \ \ i = 1,2,\cdots, m\}$​. 一般的,这里$X = 阅读全文
posted @ 2021-08-30 14:10 bregman 阅读(461) 评论(1) 推荐(0)
摘要:```python import json import base64 # 输入 x = dict(a=1, b='555', name='中文') # 编码 y = json.dumps(x, indent=2).encode('utf-8') with open('b64.txt', 'wb') 阅读全文
posted @ 2021-08-17 16:30 bregman 阅读(96) 评论(0) 推荐(0)
摘要:* 必须捕获与非必须捕获异常。 用RuntimeException 抛出提示 ```java try { // todo } catch (Exception e) { String message = String.format("record=%s,keys=%s",checkPoints, a 阅读全文
posted @ 2021-08-13 12:08 bregman 阅读(33) 评论(0) 推荐(0)