我正在使用python2打印一些数据。 我希望以以下格式打印输出
echo 'Stats,tableName=test ItemCount=1,TableSizeBytes=85'
我的代码是以下面的格式给出的。 任何帮助都将不胜感激
输出:
echo Stats tableName= test ItemCount= 1 TableSizeBytes= 85
代码:
from __future__ import print_function
import boto.dynamodb
import boto
for table in lts:
tableinfo = conn.describe_table(table)
TableName = tableinfo['Table']['TableName']
ItemCount = tableinfo['Table']['ItemCount']
TableSize = tableinfo['Table']['TableSizeBytes']
print('echo','Dynamostats','TableName=',TableName,'ItemCount=',ItemCount,'TableSizeBytes=',TableSize)
试试这个:
输出:
试用
输出
相关问题 更多 >
编程相关推荐