首页 > 编程语言 > 详细

Python: how to public a model

时间:2015-11-23 18:43:15      阅读:244      评论:0      收藏:0      [点我收藏+]

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()

 

Python: how to public a model

原文:http://www.cnblogs.com/vision668/p/4989012.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!