问题
Is there a way to list all the user-defined variables & function in a Notebook ?
I would like this for the comfort it brings to a notebook overview as well as to spot potential multiple use of a variable name (thus redefining it accidental)
回答1:
To find names in a context, say in the Global context, try
Names["Global`*"]
--Nasser
来源:https://stackoverflow.com/questions/6166027/list-all-user-defined-variables-functions-in-a-notebook-in-mathematica