![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python实践项目
expore_inload
这个作者很懒,什么都没留下…
展开
-
解决twine upload时HTTPError: 403 Client Error: Invalid or non-existent authentication information.
正在自学Ninad Sathaye - Learning Python Application Development (2016, Packt Publishing - ebooks Account)。有一章节是将自己的代码上传到testPyPI。 在自己的用户目录下新建一个空白文件命名为.pypirc。在该文件中,我输入了自己的用户名和密码,假定用户名是abc,密码是123。一开始我输入的内容如下:[distutils] index-servers= py...原创 2020-06-15 21:12:23 · 2766 阅读 · 2 评论 -
Python: The Collatz Sequence
学习《Python编程快速上手》P56问题链接:https://automatetheboringstuff.com/chapter3/ Write a function named collatz() that has one parameter named number. If number is even, then collatz() should print number // ...原创 2018-07-10 22:12:50 · 516 阅读 · 0 评论 -
Python: Comma Code
学习《Python编程快速上手》P79问题链接:https://automatetheboringstuff.com/chapter4/Say you have a list value like this:spam = ['apples', 'bananas', 'tofu', 'cats']Write a function that takes a list value as an argum...原创 2018-07-11 20:56:30 · 439 阅读 · 0 评论 -
Python: Character Picture Grid
学习《Python编程快速上手》P79问题链接:https://automatetheboringstuff.com/chapter4/Say you have a list of lists where each value in the inner lists is a one-character string, like this:grid = [['.', '.', '.', '.', '...原创 2018-07-11 21:38:53 · 341 阅读 · 0 评论 -
Python: List to Dictionary Function for Fantasy Game Inventory
学习《Python编程快速上手》P93问题链接:https://automatetheboringstuff.com/chapter5/Fantasy Game InventoryYou are creating a fantasy video game. The data structure to model the player’s inventory will be a dictionary...原创 2018-07-12 21:06:20 · 455 阅读 · 0 评论 -
Python: Table Printer
学习《Python编程快速上手》P111问题链接:https://automatetheboringstuff.com/chapter6/Table PrinterWrite a function named printTable() that takes a list of lists of strings and displays it in a well-organized table wi...原创 2018-07-13 21:54:35 · 437 阅读 · 0 评论 -
Python: Strong Password Detection
学习《Python编程快速上手》P136问题链接: https://automatetheboringstuff.com/chapter7/Strong Password DetectionWrite a function that uses regular expressions to make sure the password string it is passed is strong. A...原创 2018-07-14 17:51:12 · 598 阅读 · 0 评论