-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest003.py
More file actions
33 lines (30 loc) · 749 Bytes
/
test003.py
File metadata and controls
33 lines (30 loc) · 749 Bytes
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
27
28
29
30
31
32
33
test = """
'Dengue virus'
'Ebola virus'
'Encephalomyocarditis virus'
'Enterovirus 71'
'Epstein-Barr Virus'
'H7N9 influenza virus'
'Hepatitis B virus'
'Hepatitis C virus'
'Human Bocavirus 1'
'Human cytomegalovirus'
'Human immunodeficiency virus type 1'
'Human rhinovirus'
'Human T-lymphotropic virus type 1'
'Influenza A virus'
Kaposi's sarcoma-associated herpesvirus
'Lymphocytic choriomeningitis mammarenavirus'
'Measles virus'
Rhinovirus
'Rift Valley fever virus'
'Sendai virus'
'Severe acute respiratory syndrome coronavirus 2'
'West Nile virus'
'Zika virus'
"""
tmp = """update diff set NAME = replace(NAME, "{}","")"""
for nd in test.split("\n"):
cnt = nd.replace("'","").strip()
if cnt:
print(tmp.format("files/" + cnt + "/"))