只是另一种解决方案:
n.phone = "%c%c%c-%c%c%c-%c%c%c%c" % tuple(map(ord, n.phone))
要么
n.phone = "%s%s%s-%s%s%s-%s%s%s%s" % tuple(n.phone)

只是另一种解决方案:
n.phone = "%c%c%c-%c%c%c-%c%c%c%c" % tuple(map(ord, n.phone))
要么
n.phone = "%s%s%s-%s%s%s-%s%s%s%s" % tuple(n.phone)