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

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

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=1234, debug=True)
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");
Esempio n. 4
0
from repast import app

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

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=9909, debug=True)
Esempio 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")