name: long2short

def to_short_with(long_name):
    head = long_name.split(' ')[0]
    tail = long_name.split(' ')[-1]

    return head[0].lower() + tail.lower()
posted @ 2017-03-22 10:06  idlewith  阅读(106)  评论(0编辑  收藏  举报