标题:
[问题求助]
Python列元素加符号!!
[打印本页]
作者:
keshun
时间:
2021-1-11 14:37
标题:
Python列元素加符号!!
本帖最后由 keshun 于 2021-1-18 11:38 编辑
open high low close K D J
1 3.093 3.428 3.065 3.274 57.576 57.576 57.58
2 3.274 3.881 3.259 3.656 66.486 62.922 73.61↑
3 3.655 3.838 3.481 3.838 79.865 70.948 97.7↑
4 3.838 4.000 2.927 2.998 49.439 62.013 24.29↘
5 2.999 3.124 2.787 2.860 32.770 50.787 -3.26↘
6 2.857 3.125 2.836 3.121 30.857 43.504 5.56↑
7 3.123 3.207 2.987 3.059 27.871 37.969 7.67↑
8 3.059 3.359 3.004 3.282 32.359 36.023 25.03↑
9 3.279 3.479 3.039 3.243 34.150 35.382 31.69↑
10 3.245 3.261 3.078 3.139 32.409 34.374 32.56↑
11 3.14 3.260 3.101 3.249 34.324 34.357 34.26↑
12 3.249 3.273 3.086 3.115 31.877 33.524 28.58↘
13 3.11 3.127 2.845 3.025 32.720 33.255 31.65↑
14 3.024 3.128 2.993 3.040 32.388 32.965 31.23↘
15 3.04 3.095 3.017 3.083 34.109 33.347 35.63↑
16 3.083 3.101 2.881 2.924 26.882 31.189 18.27↘
17 2.924 2.947 2.716 2.832 22.985 28.451 12.05↘
18 2.833 2.892 2.755 2.795 20.049 25.649 8.85↘
19 2.796 2.823 2.701 2.778 17.852 23.049 7.46↘
20 2.778 2.848 2.748 2.810 18.254 21.450 11.86↑
关闭窗口
print(datas)
在‘J’列追加符号,每行与上一行比,大于上一行↑,小于上一行↘,求代码?谢谢!
欢迎光临 批处理之家 (http://bbs.bathome.net/)
Powered by Discuz! 7.2