【发布时间】:2020-04-01 21:50:05
【问题描述】:
dic={'el1': [1,2,3], 'el2': 'Hello!'}
dic['el1']
x=str(100000)
time=170000000
sec='ALRS'
"SELECT * FROM order_log WHERE \"TIME\"<="+str(time)+" AND\"SECCODE\"='"+sec+"'"
import matplotlib.pyplot as plt
plt.plot(x['LOB'].index,x['LOB']['B'], x['LOB'].index,x['LOB']['S'])
# plt.bar(x['LOB'].index,x['LOB']['S'])
TypeError: string indices must be integers
为什么返回字符串索引必须是整数?
【问题讨论】:
-
尝试缩进第二行
标签: python postgresql jupyter-notebook