实现效果:
方法一:
1 print "+"+"-"*8+"+"+"-"*8+"+"+"-"*8+"+"
2 print "|"+" "*2+"姓名"+" "*2+"|"+" "*2+"年龄"+" "*2+"|"+" "*2+"籍贯"+" "*2+"|"
3 print "+"+"-"*8+"+"+"-"*8+"+"+"-"*8+"+"
4 print "|"+" "*2+"张三"+" "*2+"|"+" "*2+" 32 "+" "*2+"|"+" "*2+"北京"+" "*2+"|"
5 print "+"+"-"*8+"+"+"-"*8+"+"+"-"*8+"+"
6 print
- 1
- 2
前往页