python
文章平均质量分 53
折花入酒666
这个作者很懒,什么都没留下…
展开
-
【数据处理】:(一)图片类
一、csv文件中包含图片地址与分类1、先读取csv文件train_data = pd.read_csv("../data/classify-leaves/train.csv")test_data = pd.read_csv("../data/classify-leaves/test.csv")2、将分类取出,得到classesclasses = sorted(list(set(train_data['label'])))3、把classes转成对应的数字classes_to_num = .原创 2022-03-13 15:52:06 · 5874 阅读 · 0 评论 -
根据出生年月日算出天干地支星座属相
出生年月日转化输入:某人出生的年月日(如1995,8,1)输出:输出对应的天干地支属相和星座信息Tiangan = ["甲","乙","丙","丁","戊","已","庚","辛","壬","癸"]Earthly_branch = ["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]Phase = ["鼠","牛","虎","兔","龙","...原创 2019-10-11 16:46:28 · 1607 阅读 · 0 评论