a = np.array([['项目A','薛之谦','费用1',200],
['项目A','薛之谦','费用2',100],
['项目B','薛之谦','费用3',300],
['项目C','张韶涵','费用4',600],
['项目C','张韶涵','费用5',300]])
b = np.array([['项目A',2000,3000],
['项目B',5000,2000],
['项目C',3000,1000]])
# 需求:
# 1、需要从a中取出薛之谦的所有项目:项目A和项目B
# 2、从b中根据"a_project",将b中包含有"a_project"的列的后两列累加,即:2000+3000+5000+2000
# 实现:
# 1、
a_project = np.unique(a[a[:,1] == '薛之谦',:][:,0]) #['项目A' '项目B']
# 2、