{ "info": { "author": "prozhuchen", "author_email": "prozhuchen@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Printtable\u662f\u4e00\u4e2a\u53ef\u4ee5\u5728terminal\u4e0a\u8f93\u51fa\u6570\u636e\u8868\u6837\u5f0f\u7684python\u516c\u5171\u5e93\u3002\r\n\r\n\r\n\u4e0b\u8f7d\u65b9\u5f0f\r\n\r\n\u3000pip install printtable\r\n\r\n\r\n\u5f15\u7528printtable\r\n\r\n\u3000from printtable import PrintTable\r\n\r\n\u9996\u5148\u6211\u4eec\u9700\u8981\u6784\u5efa\u8868\u7684\u8868\u5934\uff0c\u7136\u540e\u521b\u5efa\u8868\r\n\r\n attributes=[['name','old']]\r\n\r\n table = PrintTable(attributes)\r\n\r\n\u7136\u540e\u6211\u4eec\u6709\u4e24\u79cd\u65b9\u5f0f\u5411\u8868\u5185\u52a0\u5165\u6570\u636e\r\n\r\n1.append_data:\u53ef\u4ee5\u901a\u8fc7\u660e\u786e\u7279\u5f81\u6765\u52a0\u5165\u4e00\u884c\u6570\u636e\u4e2d\u7684\u4e00\u90e8\u5206\u6570\u636e\u6216\u8005\u591a\u884c\u6570\u636e\u3002\r\n\r\n\u3000table.append_data(name=\"Jack\",old = \"20\")\r\n\r\n\u3000table.append_data(name =[\"Jack\",\"Mary\"], old =[\"20\",\"19\"])\r\n\r\n2.append_data_list: \u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528list\u683c\u5f0f\u7684\u53d8\u91cf\u5411\u8868\u4e2d\u52a0\u5165\u4e00\u884c\u6570\u636e\u3002\u4e0d\u8fc7\u8981\u6ce8\u610f\u6570\u636e\u7684\u987a\u5e8f\u8981\u7b26\u5408\u521b\u5efa\u8868\u65f6\u7684\u8868\u5934\u76f8\u540c\u3002\r\n\r\n\u3000table.append_data_list([\"Jack\",\"20\"]) \r\n\r\n\r\n\u652f\u6301\u52a0\u5165\u4e2d\u6587\u6570\u636e\uff0c\u4f46\u8868\u5934\u76ee\u524d\u53ea\u80fd\u652f\u6301\u82f1\u6587\u3002\r\n\r\n\u3000table.append_data(name = \"\u5c0f\u660e\",old = \"20\")\r\n\r\n\u3000table.append_data(name =[\"\u5c0f\u534e\",\"\u5927\u50bb\"], old =[\"20\",\"19\"])\r\n\r\n\u3000table.append_data_list([\"\u4e8c\u50bb\u5b50\",\"20\"]) \r\n\r\n\u6700\u540e\u6211\u4eec\u53ef\u4ee5\u5728terminal\u76f4\u63a5\u8f93\u51faASCII\u8868\u3002\u901a\u8fc7line_num\u53c2\u6570\u6765\u63a7\u5236\u5728\u6bcf\u884c\u6570\u636e\u524d\u662f\u5426\u52a0\u4e0a\u884c\u53f7\uff0c\uff11\u4e3a\u52a0\u5165\uff0c\u9ed8\u8ba4\u4e3a\u4e0d\u52a0\u5165\u884c\u53f7\u3002\r\n\r\n table.printTable(1)\r\n\r\n table.printTable()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/prozhuchen/PrintTable", "keywords": "print table", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "PrintTable", "package_url": "https://pypi.org/project/PrintTable/", "platform": "any", "project_url": "https://pypi.org/project/PrintTable/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/prozhuchen/PrintTable" }, "release_url": "https://pypi.org/project/PrintTable/1.2/", "requires_dist": null, "requires_python": null, "summary": "a library for drawing the table in the terminal", "version": "1.2" }, "last_serial": 1797002, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "72b6a4c9617e430a0f78cc249037bb96", "sha256": "d19ee2c67ea776fc751d57607dd128c441873318c0cbda77d32b7e67f4f5cf6f" }, "downloads": -1, "filename": "printtable-1.0-py2.7.egg", "has_sig": false, "md5_digest": "72b6a4c9617e430a0f78cc249037bb96", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5405, "upload_time": "2015-10-31T13:16:27", "url": "https://files.pythonhosted.org/packages/5f/73/33bc9a7811aeced023d5dd30b7f220bed0da4ba564c7a11823f361b36ed9/printtable-1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "25a9283d333112b20d2466747bc3e725", "sha256": "e1bea91da89df32b48dd520b0640e0bac768cf44aca5087a7ee94aa0a6f75ba7" }, "downloads": -1, "filename": "printtable-1.0.tar.gz", "has_sig": false, "md5_digest": "25a9283d333112b20d2466747bc3e725", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2165, "upload_time": "2015-10-31T13:16:22", "url": "https://files.pythonhosted.org/packages/b6/e5/ea6ef5930b2a1840340677ff23d545a8db5a3f791d07f06424c09e85d758/printtable-1.0.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "bff09154dce0cbd7c7ec2c83e8cb41cf", "sha256": "1a6117fb32758c3fc8f7436a45edc5abb208af4e720bbca068745eecd2de58b9" }, "downloads": -1, "filename": "printtable-1.2-py2.7.egg", "has_sig": false, "md5_digest": "bff09154dce0cbd7c7ec2c83e8cb41cf", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6486, "upload_time": "2015-11-02T12:42:23", "url": "https://files.pythonhosted.org/packages/c1/96/4c7f869387185ce515aa92da74a9fe8fcf8531a0456da99650d9b348a891/printtable-1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a0c56bf262cd1429f78888e51caa1aa3", "sha256": "56ea5bcfde531aa13e9ec083b23446f944e2326182931990e9a6e41fcbdbd21d" }, "downloads": -1, "filename": "printtable-1.2.tar.gz", "has_sig": false, "md5_digest": "a0c56bf262cd1429f78888e51caa1aa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3083, "upload_time": "2015-11-02T12:42:00", "url": "https://files.pythonhosted.org/packages/26/a8/cfdbd4a1c9e7a8229d21298f31cf156a4d8d2f0925648d13c1fc6957fa67/printtable-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bff09154dce0cbd7c7ec2c83e8cb41cf", "sha256": "1a6117fb32758c3fc8f7436a45edc5abb208af4e720bbca068745eecd2de58b9" }, "downloads": -1, "filename": "printtable-1.2-py2.7.egg", "has_sig": false, "md5_digest": "bff09154dce0cbd7c7ec2c83e8cb41cf", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6486, "upload_time": "2015-11-02T12:42:23", "url": "https://files.pythonhosted.org/packages/c1/96/4c7f869387185ce515aa92da74a9fe8fcf8531a0456da99650d9b348a891/printtable-1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a0c56bf262cd1429f78888e51caa1aa3", "sha256": "56ea5bcfde531aa13e9ec083b23446f944e2326182931990e9a6e41fcbdbd21d" }, "downloads": -1, "filename": "printtable-1.2.tar.gz", "has_sig": false, "md5_digest": "a0c56bf262cd1429f78888e51caa1aa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3083, "upload_time": "2015-11-02T12:42:00", "url": "https://files.pythonhosted.org/packages/26/a8/cfdbd4a1c9e7a8229d21298f31cf156a4d8d2f0925648d13c1fc6957fa67/printtable-1.2.tar.gz" } ] }