No project description provided
Project description
Filekit
简易使用 Python 的文件读写内置模块,针对单词读写操作。省去 open 和 close。
介绍
def read(file_name, encoding='utf-8'):
"""读取文本文件全部内容"""
file = open(file_name, mode='r', encoding=encoding)
text = file.read()
file.close()
return text
如果需要相对复杂操作,请使用原生的 Python 内置读写模块,以获得更可靠和高效的处理。
安装
使用以下命令安装 Filekit:
pip install Filekit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FileKit-1.0.5.tar.gz
(1.7 kB
view details)
File details
Details for the file FileKit-1.0.5.tar.gz
.
File metadata
- Download URL: FileKit-1.0.5.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d72c7888e18cf9593cb8bcc6c5c9e26c0dbe094254e2b2a963d90a6a85951e26 |
|
MD5 | 83b6cc7cfaaa9cd4982beb653e6ccfb0 |
|
BLAKE2b-256 | 9939b54ffc6a42a33bc2d68787fb2e0efb743de144c1443b61c6d50f0f2879e0 |