code; source. fname=input("Enter the file name : "); fp=open(fname,"r"); data=fp.read(); size=len(data); print("Size of file in Byte : ",size); fp.close().
確定! 回上一頁