zoukankan      html  css  js  c++  java
  • Python: how to public a model

    1, Create a folder fileFolder

    2, create a file tester.py

    3, create another file setup.py:

    The content of setup.py

      from distutils.core import setup

      setup(name = 'tester',
          version = '1.0.0',
          py_modules = ['tester'],
          author = 'MengliChen',
          author_email = 'v-mench@outlook.com',
          url = 'http://www.baidu.com',
          description = ' A simple prnter of string lists'
          )

    4, public the file test.py: In the command type in python setup.py sdit

    5, Install the build in your local VM: In the command type in python setup.py install

    You can use the method in test.py by following code:

    import tester

    tester.methodName()

    I work for software testing.
  • 相关阅读:
    day 1 认识js
    day2,request对象
    day3
    day 14 函数的嵌套,作用域
    命名空间(名称空间)
    day 13 函数
    day 11(2) 集合
    day 11 字典拆包
    字典
    两周英语函数(记)
  • 原文地址:https://www.cnblogs.com/vision668/p/4989012.html
Copyright © 2011-2022 走看看