#!/usr/bin/env python
# -*- coding:utf-8 -*-
print '\n'.join(['*'*7 for i in range(4)])
print '\n'
print '\n'.join(['*'*(i*2+1) for i in range(4)])
print '\n'
print '\n'.join([('*'*(i*2+1)).center(7, ' ') for i in range(4)])
print '\n'
print '\n'.join([('*'*(abs(i-3)*2+1)).center(7, ' ') for i in range(4)])
print '\n'
print '\n'.join([('*'*([i,abs(i-6)][i>3]*2+1)).center(7, ' ') for i in range(7)])
print '\n'
print '\n'.join(['*'*([i,abs(i-6)][i>3]*2+1) for i in range(7)])
各种型 没有达到你的要求 再追问
>>> ================================ RESTART ================================
>>>
*******
*******
*******
*******
*
***
*****
*******
*
***
*****
*******
*******
*****
***
*
*
***
*****
*******
*****
***
*
*
***
*****
*******
*****
***
*
>>>