python简单程序
来源:互联网 发布:ebay数据分析 编辑:程序博客网 时间:2024/06/16 09:53
#九九乘法表from __future__ import print_functioni=1j=1while j<10: i=1 while i<=j: print ("%d * %d = %d "%(i,j,i*j),end="\t ")#文本对齐 i+=1 j+=1 print("")#打印金字塔while True: number = input("please input a number \n") if number%2==0: print("please input a odd") continue if number==0: break i=1 j=number/2 while i<=number and j>=0: num = 1 star=1 while num<=j: print (" ",end="") num+=1 while star<=i: print ("*",end="") star+=1 i += 2 j -= 1 print('')#打印完成上半部分 j=1 i=number-2 while i>=1 and j<=number/2: num=1 star=1 while num<=j: print (' ',end="") num+=1 while star<=i: print ('*',end="") star+=1 i-=2 j+=1 print('')
阅读全文
0 0
- 简单调试 python 程序
- 简单调试 Python 程序
- 简单调试 Python 程序
- 求助简单python程序
- python 简单小程序
- 简单调试 Python 程序
- python简单实验程序
- python简单爬虫程序
- 简单实用Python程序
- python简单程序
- Python socket 简单示例程序
- python简单模拟数据库程序
- python简单网络爬虫程序
- 简单的Python爬虫程序
- python实现简单聊天程序
- Python简单通信录程序
- python简单的爬虫程序
- Moblin的简单Python程序开发
- 教你如何通过MCU将S2E配置为UDP的工作模式
- linux查看端口占用情况
- 设计模式学习-桥接模式
- 第一个blog
- svn使用笔记
- python简单程序
- 字车移动同步喷墨算法
- (面试题)Webp优势
- TabLayout滑动固定顶部
- Intetllij IDEA 创建JAVA WEB 项目
- 关于Java的反射机制,你需要理解这些...
- Spring-data-jpa报错Not an managed type: class java.lang.Object
- Codeforces Round #445 Div1 D:Symmetric Projections (计算几何)
- Python 生成各类随机样本(数字,字符串,时间)