-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.py
62 lines (46 loc) · 1 KB
/
test.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
centerX = 0
centerY = 0
road1Ybeg = centerY + 30
road1Yend = centerY + 10
road2Xbeg = centerX - 30
road2Xend = centerX - 10
road3Xbeg = centerX + 30
road3Xend = centerX + 10
output = open("output.txt", "w+")
output.write("(")
output.write(str(centerX))
output.write(", ")
output.write(str(road1Ybeg))
output.write(")")
output.write(",")
output.write("(")
output.write(str(centerX))
output.write(", ")
output.write(str(road1Yend))
output.write(")")
output.write(",[] \n")
output.write("(")
output.write(str(centerX))
output.write(", ")
output.write(str(road1Yend))
output.write(")")
output.write(",")
output.write("(")
output.write(str(road2Xend))
output.write(", ")
output.write(str(centerY))
output.write(")")
output.write(",[] \n")
output.write("(")
output.write(str(road3Xbeg))
output.write(", ")
output.write(str(centerY))
output.write(")")
output.write(",")
output.write("(")
output.write(str(road3Xend))
output.write(", ")
output.write(str(centerY))
output.write(")")
output.write(",[] \n")
output.close()