当前位置: 首页 > news >正文

聊城手机网站建设价格wordpress如和安装

聊城手机网站建设价格,wordpress如和安装,品牌网站首页设计,网站建设入门到精通3.7 新版功能.这个模块使得Python的导入系统提供了访问*包*内的*资源*的功能。如果能够导入一个包#xff0c;那么就能够访问那个包里面的资源。资源可以以二进制或文本模式方式被打开或读取。资源非常类似于目录内部的文件#xff0c;要牢记的是这仅仅是一个比喻。资源和包不…3.7 新版功能.这个模块使得Python的导入系统提供了访问*包*内的*资源*的功能。如果能够导入一个包那么就能够访问那个包里面的资源。资源可以以二进制或文本模式方式被打开或读取。资源非常类似于目录内部的文件要牢记的是这仅仅是一个比喻。资源和包不是与文件系统上的物理文件和目录一样存在着。注解This module provides functionality similar to pkg_resources BasicResource Accesswithout the performance overhead of that package. This makes readingresources included in packages easier, with more stable and consistentsemantics.加载器想要支持资源读取应该实现一个由 importlib.abc.ResourceReader 指定的get_resource_reader(fullname) 方法。The following types are defined.importlib.resources.Package¶The Package type is defined as Union[str, ModuleType]. This meansthat where the function describes accepting a Package, you can pass ineither a string or a module. Module objects must have a resolvable__spec__.submodule_search_locations that is not None.importlib.resources.Resource¶This type describes the resource names passed into the various functionsin this package. This is defined as Union[str, os.PathLike].The following functions are available.importlib.resources.files(package)¶Returns an importlib.resources.abc.Traversable objectrepresenting the resource container for the package (think directory)and its resources (think files). A Traversable may contain othercontainers (think subdirectories).package is either a name or a module object which conforms to thePackage requirements.3.9 新版功能.importlib.resources.open_binary(package, resource)¶Open for binary reading the resource within package.package is either a name or a module object which conforms to thePackage requirements. resource is the name of the resource to openwithin package; it may not contain path separators and it may not havesub-resources (i.e. it cannot be a directory). This function returns atyping.BinaryIO instance, a binary I/O stream open for reading.importlib.resources.open_text(package, resource, encodingutf-8, errorsstrict)¶Open for text reading the resource within package. By default, theresource is opened for reading as UTF-8.package is either a name or a module object which conforms to thePackage requirements. resource is the name of the resource to openwithin package; it may not contain path separators and it may not havesub-resources (i.e. it cannot be a directory). encoding and errorshave the same meaning as with built-in open().This function returns a typing.TextIO instance, a text I/O stream openfor reading.importlib.resources.read_binary(package, resource)¶Read and return the contents of the resource within package asbytes.package is either a name or a module object which conforms to thePackage requirements. resource is the name of the resource to openwithin package; it may not contain path separators and it may not havesub-resources (i.e. it cannot be a directory). This function returns thecontents of the resource as bytes.importlib.resources.read_text(package, resource, encodingutf-8, errorsstrict)¶Read and return the contents of resource within package as a str.By default, the contents are read as strict UTF-8.package is either a name or a module object which conforms to thePackage requirements. resource is the name of the resource to openwithin package; it may not contain path separators and it may not havesub-resources (i.e. it cannot be a directory). encoding and errorshave the same meaning as with built-in open(). This functionreturns the contents of the resource as str.importlib.resources.path(package, resource)¶Return the path to the resource as an actual file system path. Thisfunction returns a context manager for use in a with statement.The context manager provides a pathlib.Path object.Exiting the context manager cleans up any temporary file created when theresource needs to be extracted from e.g. a zip file.package is either a name or a module object which conforms to thePackage requirements. resource is the name of the resource to openwithin package; it may not contain path separators and it may not havesub-resources (i.e. it cannot be a directory).importlib.resources.is_resource(package, name)¶Return True if there is a resource named name in the package,otherwise False. Remember that directories are not resources!package is either a name or a module object which conforms to thePackage requirements.importlib.resources.contents(package)¶Return an iterable over the named items within the package. The iterablereturns str resources (e.g. files) and non-resources(e.g. directories). The iterable does not recurse into subdirectories.package is either a name or a module object which conforms to thePackage requirements.
http://www.zqtcl.cn/news/742930/

相关文章:

  • 企业网站托管一年多少钱想学电商运营在哪里学
  • 网站建设自评报告手机电商平台怎么做的
  • 安阳网站建设优化免费的免抠图素材网站
  • 网站主机有什么用seo网站课程
  • 网站关键词优化软件网站的二次开发
  • 网站建设技术服务费怎么入账杭州网站推广与优化
  • 咨询类网站建设方案书重庆360网络推广
  • 简单网站模板下载wordpress调用数据库字段
  • 万网空间最多放几个网站好的网站首页的特点
  • .net做网站安全吗wordpress取消邮件验证
  • 沈阳做网站推广唐山网站怎么做seo
  • 网站备案说主体已注销刷关键词指数
  • 学做网站教学百度网盘动软代码生成器 做网站
  • 长辛店网站建设手机评测网站
  • 网站建设公司选哪个好软件开发
  • 隐形眼镜网站开发的经济效益莘县网站开发
  • 开创集团网站建设如何在学校网站上做链接
  • 上海优秀网站设计百度投诉中心人工电话号码
  • 卖建材的网站有哪些跨境电商工具类产品的网站
  • 做毕业网站的周记网站开发项目书
  • 门户网站价格仿站工具下载后咋做网站
  • 国外优秀ui设计网站常州网站建设电话
  • 大连手机网站建设做外贸无网站如何做
  • 做旅游门票网站需要什么材料人工智能培训机构哪个好
  • 免费的网站程序个人网站可以做论坛么
  • ps中网站页面做多大的wordpress cdn 阿里
  • 深圳整站创意设计方法有哪些
  • 浙江做网站多少钱江门市网站开发
  • 保定建站价格dw软件免费安装
  • 在建设部网站上的举报凡科网怎么建网站