代码拉取完成,页面将自动刷新
from sys import argv # import argment variable
script, rows, columns = argv # define rows and columns for the table and assign them to the argument variable
def table(rows, columns):
for i in range(1, int(
rows) + 1): # it's safe to assume that the user would mean 12 rows when they provide 12 as an argument, b'coz 12 will produce 11 rows
print("\t", i, )
print("\n\n") # add 3 lines
for i in range(1, int(columns) + 1):
print(i),
for j in range(1, int(rows) + 1):
print("\t", i * j, )
print("\n\n") # add 3 lines
table(rows, columns)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。