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.6.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file FileKit-1.0.6.tar.gz.

File metadata

  • Download URL: FileKit-1.0.6.tar.gz
  • Upload date:
  • Size: 1.8 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.6.tar.gz
Algorithm Hash digest
SHA256 13a10b860fbe00bee66cbab89927baa63402a43caea67a9affd240ab8059ad48
MD5 6665b218a39ad02156b1e413ab1e24c4
BLAKE2b-256 6cf3f8b7de0b10f3f5d00f1abeaf49f47c30400eb0dcbb03546c3737d036f748

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