首页 > 代码库 > python做题
python做题
Python题目
1.打印一个九九乘法表
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __author__ = ‘YeXiaodong‘ __QQ__= ‘12519460‘ __Email__ = ‘ye_xiaodong@qq.com‘ """ x = 1 list_table = [] print(‘九九乘法表‘.center(100,‘ ‘)) while x < 10: list_table.append(x) for i in list_table: res = ‘{0} x {1} = {2:<2}‘.format(x,i,x*i) print(res,end=‘ ‘) print(‘‘) x += 1
效果如下:
python做题
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。