Python代码: encoding='utf_8' punctuations = '''#&*''' #定义要去掉的符号 fname = "fname.txt" f = open(fname, 'r') txt = f.read() #等价于 txt