
python 小白
travel_with_hope
这个作者很懒,什么都没留下…
展开
-
【无标题】
python中须要大量画图但内存不够怎么办原创 2022-03-07 08:34:18 · 157 阅读 · 0 评论 -
python 变量类型判断
这里写自定义目录标题判断一个变量是列表还是数组 判断一个变量是列表还是数组 import numpy as np type1 = ' ' a = [1,2,3,4,5] if isinstance(a,list): type1 = ' a is list' elif isinstance(a,np.ndarray): type1 = 'a is np.ndarray' else: type1 = 'other type!' print( 'type = ',type1 )原创 2021-06-01 22:00:33 · 301 阅读 · 0 评论