# -*- coding: utf-8 -*- def vec2str(vec): _str = "" for v in vec: _str += (v + ' ') return _str