生成文本序列

import numpy as np
df = np.arange(0,210,10)
s  =  map ( str ,df)
s2 = []
for i in s:
    s2.append(i)
print(s2)

结果:

['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100', '110', '120', '130', '140', '150', '160', '170', '180', '190', '200']

posted @ 2021-02-19 11:31  汉江S  阅读(67)  评论(0)    收藏  举报