Mistakes are oft the stepping stones to failure.
FrontPage › 10000개좌표생성
Difference between r1.1 and the current
@@ -15,3 +15,6 @@
result_file.write(str(point[0])+" " +str(point[1]) + "\n")result_file.close()}}}
import random result = [] max_count = 10000 while ( len(result) < max_count ): x = random.randint(1, 10001) y = random.randint(1, 10001) result.append( (x, y) ) result = list(set(result)) result_file = open("result.txt" ,"w") result_file.write(str(max_count) + "\n") for point in result: result_file.write(str(point[0])+" " +str(point[1]) + "\n") result_file.close()