66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 6,
|
||
"id": "b3cde8ea",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"{'ovx index': '原油波动率', 'dxy curncy': '美元指数', 'C2403128043': 'Brent连1合约价格拟合残差/美元指数', 'C2403150124': 'Brent连1合约价格拟合残差/Brent 连2-连3', 'DOESCRUD Index': '美国商业原油库存', 'FVHCM1 INDEX': '美国取暖油裂解C1', 'doedtprd index': '美国成品油表需', 'CFFDQMMN INDEX': 'WTI管理资金净多持仓', 'C2403083739': 'WTI基金多空持仓比', 'C2404167878': 'WTI基金净持仓COT指标(代码运算)', 'lmcads03 lme comdty': 'LME铜价', 'GC1 COMB Comdty': '黄金连1合约', 'C2404167855': '金油比'}\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"data = \"\"\"\n",
|
||
"ovx index 原油波动率\n",
|
||
"dxy curncy 美元指数\n",
|
||
"C2403128043 Brent连1合约价格拟合残差/美元指数\n",
|
||
"C2403150124 Brent连1合约价格拟合残差/Brent 连2-连3\n",
|
||
"DOESCRUD Index 美国商业原油库存\n",
|
||
"FVHCM1 INDEX 美国取暖油裂解C1\n",
|
||
"doedtprd index 美国成品油表需\n",
|
||
"CFFDQMMN INDEX WTI管理资金净多持仓\n",
|
||
"C2403083739 WTI基金多空持仓比\n",
|
||
"C2404167878 WTI基金净持仓COT指标(代码运算)\n",
|
||
"lmcads03 lme comdty LME铜价\n",
|
||
"GC1 COMB Comdty 黄金连1合约\n",
|
||
"C2404167855 金油比\n",
|
||
"\"\"\"\n",
|
||
"\n",
|
||
"result_dict = {}\n",
|
||
"lines = data.strip().split('\\n')\n",
|
||
"for line in lines:\n",
|
||
" key, value = line.strip().split(' ')\n",
|
||
" result_dict[key] = value\n",
|
||
"\n",
|
||
"print(result_dict)"
|
||
]
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": "base",
|
||
"language": "python",
|
||
"name": "python3"
|
||
},
|
||
"language_info": {
|
||
"codemirror_mode": {
|
||
"name": "ipython",
|
||
"version": 3
|
||
},
|
||
"file_extension": ".py",
|
||
"mimetype": "text/x-python",
|
||
"name": "python",
|
||
"nbconvert_exporter": "python",
|
||
"pygments_lexer": "ipython3",
|
||
"version": "3.11.7"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 5
|
||
}
|