标签: list wolfram-mathematica
E.g。我有list A = {a,b,c,d}
list A = {a,b,c,d}
如何在一个命令中不使用list B = A元素获取{b}?
list B = A
{b}
答案 0 :(得分:2)
B = Delete[A, 3]
或
B = DeleteCases[A, c]
答案 1 :(得分:1)
A = {a, b, c, d}; B = Cases[A, Except[b]]