Your code doesnt really make sense. You pass a x and a y parameter to the function but overwrite both (so why pass them in the first place?):
def main():
x = open('DCR.txt')
You're not using the content read from the file, you have probably already seen that print(x) doesnt print the content of the file, rather in prints the file handle.
content = x.read()
You're replacing the second file handle with the first, which really doesnt do anything since you're not using the file handles past that point (except for closing one of them). What you probably want to do is write the contents of the first file to the second:
y.write(content)
The simplified function looks like this:
def main():
x = open('DCR.txt')
content = x.read()
y = open("111.txt", "a+")
y.write(content)
You get any errors running that?
main()function? Unlike in C,mainisn't a magic name in Python; amain()function won't run unless you run it.