Skip to main content

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


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)

Uploaded Source

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

Hashes for FileKit-1.0.5.tar.gz
Algorithm Hash digest
SHA256 d72c7888e18cf9593cb8bcc6c5c9e26c0dbe094254e2b2a963d90a6a85951e26
MD5 83b6cc7cfaaa9cd4982beb653e6ccfb0
BLAKE2b-256 9939b54ffc6a42a33bc2d68787fb2e0efb743de144c1443b61c6d50f0f2879e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page