File size: 428 Bytes
fe2b563
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import json

def gen(type, fill_rate, start, end, status, plus):
    fill_rate = fill_rate
    plus = plus
    type = type
    start = start
    end = end
    status = status

    data =[]

    for i in range(start, end+1):
        x = f'{fill_rate}_{i}'
        data.append(x)
    print(f"'{type}_{fill_rate}_{status}'", end=' : ')
   
    data.extend(plus)
    print(data)
    return data



gen('spray', 0,11,19,'lying',[])