文件1 收盘价.csv
172.63,168.49,44.36
162.54,183.03,43.05
164.85,182.45,46.28
166.23,185.57,49.74
110.00,149.26,41.79
117.36,169.45,45.21
111.70,173.11,47.21
104.47,175.03,41.64
102.76,167.23,42.33
101.85,176.67,41.13
118.53,200.00,42.54
126.40,212.10,48.15
文件2 成交量.csv
64.38,361.43,441.16
62.13,223.66,257.31
56.20,233.50,407.13
67.23,260.69,295.36
134.02,511.79,455.34
75.05,431.89,306.73
60.92,356.34,238.08
112.16,405.88,418.39
73.69,247.36,288.42
63.37,261.61,332.55
95.12,409.33,357.50
60.23,301.21,346.82
执行文件
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.family'] = ['Noto Sans CJK JP']
closing_bat = np.genfromtxt('收盘价.csv', delimiter=',')
vol_bat = np.genfromtxt('成交量.csv', delimiter=',')