uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。

随笔分类 -  Python伪爱好者

【Python】Windows系统安装pip.whl
摘要:pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 如果安装python的时候没有进行安装,可以对其单独进行安装。步骤: 1、下载文件:https://pypi.org/project/pip/#files 由于官方网站下载速度比较慢,可以通过国内的 阅读全文
posted @ 2020-11-15 15:17 uTank 阅读(349) 评论(0) 推荐(0)
【Python】批量修改指定目录下所有文件的文件名/后缀
摘要:【删除.txt文件的后缀】 阅读全文
posted @ 2019-03-28 20:48 uTank 阅读(2779) 评论(0) 推荐(0)
Think Python - Chapter 18 - Inheritance
摘要:In this chapter I present classes to represent playing cards, decks of cards, and poker hands.If you don't play poker, you can read about it at http:/... 阅读全文
posted @ 2015-04-03 11:24 uTank 阅读(371) 评论(0) 推荐(0)
Think Python - Chapter 17 - Classes and methods
摘要:17.1 Object-oriented featuresPython is an object-oriented programming language, which means that it provides features that support object-oriented pro... 阅读全文
posted @ 2015-03-31 15:02 uTank 阅读(371) 评论(0) 推荐(0)
Think Python - Chapter 16 - Classes and functions
摘要:16.1 TimeAs another example of a user-defined type, we’ll define a class called Time that records the time of day. The class definition looks like thi... 阅读全文
posted @ 2015-03-29 19:21 uTank 阅读(302) 评论(0) 推荐(0)
Think Python - Chapter 15 - Classes and objects
摘要:15.1 User-defined typesWe have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type calle... 阅读全文
posted @ 2015-03-29 19:20 uTank 阅读(376) 评论(0) 推荐(0)
Think Python - Chapter 12 Tuples
摘要:12.1 Tuples are immutable(元组是不可变的)A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tu... 阅读全文
posted @ 2015-03-27 15:17 uTank 阅读(402) 评论(0) 推荐(0)
Think Python - Chapter 11 - Dictionaries
摘要:DictionariesA dictionary is like a list, but more general. In a list, the indices have to be integers; in a dictionary they can be (almost) any type.Y... 阅读全文
posted @ 2015-03-21 11:05 uTank 阅读(285) 评论(0) 推荐(0)
Think Python - Chapter 10 - Lists
摘要:10.1 A list is a sequenceLike a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The v... 阅读全文
posted @ 2015-03-21 10:59 uTank 阅读(343) 评论(0) 推荐(0)
Think Python - Chapter 03 - Functions
摘要:3.1 Function callsIn the context of programming, a function is a named sequence of statements that performsa computation. When you define a function, ... 阅读全文
posted @ 2015-03-21 10:50 uTank 阅读(383) 评论(0) 推荐(0)
Think Python - Chapter 8 - Strings
摘要:8.1 A string is a sequenceA string is a sequence of characters. You can access the characters one at a time with thebracket operator:>>> fruit = 'bana... 阅读全文
posted @ 2015-03-21 10:36 uTank 阅读(376) 评论(0) 推荐(0)