第26698题
Python:给定读《水浒传》《红楼梦》文本的代码,求横线处能得出两书完整汉字集合的代码

汉字的Unicode编码界于0x4E00和0x9FA5之间。

shzFile = open("水浒传.txt", "r", encoding = "utf-8")
hlmFile = open("红楼梦.txt", "r", encoding = "utf-8")
sSet = set(shzFile.read())
hSet = set(hlmFile.read())
shzFile.close()
hlmFile.close()

print(____)
A

{x for x in (sSet + hSet) if 0x4E00 <= ord(x) <= 0x9FA5 }

B

{x for x in (sSet | hSet) if 0x4E00 <= x <= 0x9FA5 }

C

{x for x in (sSet + hSet) if 0x4E00 <= x <= 0x9FA5 }

D

{x for x in (sSet | hSet) if 0x4E00 <= ord(x) <= 0x9FA5 }