nbsupport.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:glvis 作者: wakita 项目源码 文件源码
def line(name, *args):
  def conv(x):
    if (isinstance(x, sp.Basic) or
        isinstance(x, sp.MutableDenseMatrix) or
        isinstance(x, tuple)): return sp.latex(x)
    elif isinstance(x, str): return x
    else: print(type(x))

  line = [ conv(x) for x in args ]
  try:
    _Document_[name].append(line)
  except:
    _Document_[name] = [line]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号