-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha.py
66 lines (66 loc) · 1.53 KB
/
a.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /usr/bin/python
import platform;
import os;
list = [];
list2 = [];
x = 0
while True:
a = input();
if ((a == "END1") or (a == "END2") or (a == "END") or(a == "END3")):
if (a == "END2"):
x = 1;
if (a == "END3"):
x = 2;
break;
list.append(a);
count = 0;
while True:
if ((count > 9) or (x == 2)):
list2.append("{{srcu|" + (list[count])[12:-2] + "|zh|w}}");
else:
list2.append(" |user name" + str(count + 1) + " = " + (list[count])[12:-2]);
count += 1;
if count > len(list) - 1:
break;
sv = platform.system();
if sv == "Windows":
os.system("cls");
else:
os.system("clear");
count = 0;
if (x == 1):
print("=== " + (list[0])[12:-2] + "@zh.wikipedia ===\n{{CU request\n |status = <!--don't change this line-->\n |language code = zh\n |project shortcut = w\n");
if ((x != 1) and (x != 2)):
while True:
print(list2[count]);
count += 1;
if(count > len(list) - 1):
break;
cx = 0;
if x == 2:
while True:
print("* ",end="");
print(list2[cx]);
cx += 1;
if cx == len(list2):
break;
if x == 1:
#if(len(list) > 10):
cx = 0;
while True:
print(list2[cx]);
cx += 1;
if(cx == 10 or cx == len(list2)):
break;
if(len(list) > 10):
print(" |discussion = [[:w:zh:Wikipedia:元維基用戶查核請求#" + (list[0])[12:-2] + "]]\n |reason = More users: ");
while True:
print("*",end="");
print(list2[cx]);
cx += 1;
if cx == len(list2):
break;
print("}}",end = "");
else:
print(" |discussion = [[:w:zh:Wikipedia:元維基用戶查核請求#" + (list[0])[12:-2] + "]]\n |reason =\n}}");
input();