Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能获取堆栈中元素的数量?
例如,如果堆栈如下所示:
--- Data stack: 1 1 1
结果应该是3。
3
这应该可以解决问题:
datastack length