Exemplo n.º 1
0
# coding: UTF-8
from repast import app

if __name__ == '__main__':
    app.run(host='127.0.0.1', port=9909, debug=True)
Exemplo n.º 2
0
# coding: UTF-8
from repast import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=1234, debug=True)
Exemplo n.º 3
0
from repast import app
import sys

arglen = len(sys.argv)

if __name__ == '__main__':
    if arglen == 3:
        app.run(host=sys.argv[1], port=int(sys.argv[2]))
    else:
    	print("Error args number, need ip and port");
Exemplo n.º 4
0
from repast import app

if __name__ == '__main__':
    app.run(host='127.0.0.1', port=1234)
Exemplo n.º 5
0
# coding: UTF-8
from repast import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=9909, debug=True)
Exemplo n.º 6
0
from repast import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=1234)
from repast import app
import sys

arglen = len(sys.argv)

if __name__ == '__main__':
    if arglen == 3:
        app.run(host=sys.argv[1], port=int(sys.argv[2]))
    else:
        print("Error args number, need ip and port")