是否有一个等效于R< invisible()函数的Python

时间:2015-03-09 13:17:34

标签: python r ipython

我是Python的新手,想知道Python(或IPython)是否与R中的invisible()函数等效.invisible()函数返回值,但如果以交互方式运行则不会显示它们相反,它只是让它们可用于分配。例如:

doStuff <- function(x) {
   // blah blah 
   return(invisible(retValue))
}

z = doStuff(x) // z has the return value
doStuff(x) // retValue doesn't get displayed

0 个答案:

没有答案