Python之打印变量

def myprint(v):
    print v
    print type(v)
    try:
        print v.shape
    except:
        try:
            print len(v)
        except:
            pass

 

posted @ 2017-04-10 11:37  Shiyu_Huang  阅读(1293)  评论(0编辑  收藏  举报