左对齐:
str1 = '{:<30}{:<10}{:<10}{:<10}{:<10}{:<10}{:<10}'.format("视频id", "排名", "评论数", "点赞数", "播放数", "分享数",
"发布时间") + "\n"
str2 = '{:<30}{:<10}{:<10}{:<10}{:<10}{:<10}{:<10}'.format(video_id, rank, commentCount, diggCount,
playCount,
shareCount, createTime) + "\n"