摘要: Def run(self): Print(‘{}在跑’.format(self.name)) dog.run() Self说明当前的方法是一个实例方法(类的实例化的方法),将方法绑定到当前的实例上面去。 类变量的调用 类方法的调用 cls是表示类的类型,看成默认的即可。 私有变量 私有方法 用属性替 阅读全文
posted @ 2023-10-29 16:49 Strive_ToLife 阅读(5) 评论(0) 推荐(0) 编辑
摘要: python的异常处理: Try-except语句 在上面的例子中,我们使用了两个占位符 {} 来表示要插入的变量的位置。然后,通过在format()方法中传递变量 name 和 age 来替换这些占位符。 你还可以通过在占位符 {} 中添加索引来指定要替换的参数的顺序。例如: python nam 阅读全文
posted @ 2023-10-29 10:23 Strive_ToLife 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Making judgements about a text Checklist Below is a checklist for critical reading. Use it to check your understanding of the information on this page 阅读全文
posted @ 2023-07-13 17:08 Strive_ToLife 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Note: The information on this page is mostly repeated from the listening and note-taking section. Styles of notes for reading are the same as for list 阅读全文
posted @ 2023-07-13 17:04 Strive_ToLife 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Note-taking Making notes from texts Note-taking for reading has many areas in common with note-taking when listening, for example the need to identify 阅读全文
posted @ 2023-07-13 16:38 Strive_ToLife 阅读(45) 评论(0) 推荐(0) 编辑
摘要: How to read quickly but effectively In academic contexts you will have much to read, from thick text books to academic journal articles. Although this 阅读全文
posted @ 2023-07-13 16:34 Strive_ToLife 阅读(17) 评论(0) 推荐(0) 编辑
摘要: What makes a good summary of a text?1. Summaries must be shorter than the original text.You willoften summarise whole paragraphs, texts, or ideas in a 阅读全文
posted @ 2023-07-13 16:15 Strive_ToLife 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ‘The seminar is a common way ofteaching students on university courses in the UK and it is very likely that you will experience seminars on your cours 阅读全文
posted @ 2023-07-12 10:59 Strive_ToLife 阅读(8) 评论(0) 推荐(0) 编辑
摘要: How do we paraphrase? There are many techniques we can use,but essentially paraphrasing can involve three main features: 1.Changing word class(e.g. ve 阅读全文
posted @ 2023-07-04 15:42 Strive_ToLife 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Python 标识符 在 Python 里,标识符由字母、数字、下划线组成。 在 Python 中,所有标识符可以包括英文、数字以及下划线(_),但不能以数字开头。 Python 中的标识符是区分大小写的。 以下划线开头的标识符是有特殊意义的。以单下划线开头 _foo 的代表不能直接访问的类属性,需 阅读全文
posted @ 2021-06-23 17:50 Strive_ToLife 阅读(57) 评论(0) 推荐(0) 编辑