📅  最后修改于: 2022-03-11 14:46:47.791000             🧑  作者: Mango
代码示例1
# Use words.txt as the file name
fname = input("Enter file name: ")
fh = open(fname)
ah = fh.read().rstrip().upper()
print(ah)