关联管理包

associations的Python项目详细描述


协会

This is an association management package.

对象

  • 等级:

    • Association(word:str,name:str,method=None,区分大小写=True,regular=False,**data)
      • word-word创建关联
      • name—您的协会的名称
      • 方法-搜索关联时使用的方法(in/including/is)
      • case\u sensetive-case sensitive搜索
      • 正则-搜索时使用正则表达式
      • 数据-要保存的数据
      • 方法:
        • add()

          Add self to the list of associations

        • getdata()

          Get the data that was saved when you created it

        • getmethod()

          Get the method that is assigned at creation

        • isregular()

          Checks whether regular expressions are enabled

        • get_case\u sensitive()

          Checks whether register accounting is enabled

        • getname()

          Get the name of this association

        • set\u case\u sensitive(状态:bool)

          Enables or disables case accounting

  • 变量:

    • 关联

      It is the heir of the inner class "associations"

      • 方法:
        • add(值:string,名称:str,方法:str,区分大小写=True,regular=False,**data)

          Create a new association and adds it to the associations list

        • add(值:关联)

          Add the association to the associations list

        • get(string:str)->列表

          Searches for all associations to the string "string"


示例

importassociationsassociations.Associations.add('hello','Greeting','including')print(associations.Associations.get('hello, world!')[0].getname())

输出:

Greeting

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将Map<String,String>传递给需要Map<String,Object>   java在循环中使用字符串而不是StringBuilder是否会造成内存损失?   jnlp如何更新java控制台JRE?   java更改、修改和重新打包CXFAPI源文件   JavaFXJava应用程序在Fedora上运行一段时间后关闭   使用来自不同类的方法的java   java如何通过ant脚本在linux中使用subst?   java在使用camunda modeler进行base64编码/解码时出错   获取java。netbeans、weblogic和fastswap设置为true时的lang.NoSuchMethodError   java如何提高FinalizerThread在GC中收集对象的优先级   java检测具有相同根的单词   netbeans crud应用程序中的java错误