标签:变量 inf mem int python 拼接 memory cpu _id
cpu = instances[‘vcpus_current‘]
cpu1 = str(cpu) + ‘核‘
memory = instances[‘memory_current‘] / 1024
memory1=str(memory) + ‘G‘
info = str(cpu1) + str(memory1)
print instance_id,cpu1,memory1,info
i-6gdkkemx 2核 2G 2核2G
标签:变量 inf mem int python 拼接 memory cpu _id
原文地址:http://www.cnblogs.com/tengfei520/p/7123156.html