Python中类和对象

编程分类 不同的编程语言,归根到底是一些逻辑代码结构构成的一个整体。当我们用这些逻辑代码去解决问题时,根据解决问题的方式不同可以分为:面向过程

凉州词·王翰

###凉州词 唐代·王翰 葡萄美酒夜光杯,欲饮琵琶马上催。 醉卧沙场君莫笑,古来征战几人回? 注释: 凉州词:唐乐府名,属《近代曲辞》,是《凉州曲》的

Python多线程

多任务 当我们利用电脑上网时,可以一遍听音乐一边看新闻或者一边做其他事情。这说明电脑在同时运行多个任务。我们知道无论是看新闻还是听音乐,最终都

昨天(2020年7月5号)老爸悄悄地到开封买了一辆车,丰田卡罗拉高配、落地全款13.5万。 关于买车,应该是老爸今年最大的目标了。以前总是说让

Python中的哈希表

在前面 数组中重复的数字 的一道算法题中,我发现有人提到了Hash算法。自己第一次接触这个概念,所以在此简单的总结一下python中Hash的应

Going to the PHARMACY

If we go to a pharmacy, what should we pay attention to? A pharmacy is a place where you can get medication or medicine. Another word for pharmacy is drugstore. medicine/drugs prescription drugs: you need a doctor to say, “Take this” Over the counter drugs: you do not need a prescription people in pharmacy pharmacist: a person who work at the pharmacy. they are an expert in medication. clerk/ pharmacy

替换空格

题目描述 请实现一个函数,把字符串 s 中的每个空格替换成”%20”。 示例 1: 1 2 输入:s = "We are happy." 输出:"We%2

How to Cancle Plans in English

Sometimes, we have to cancel our plans with someone due to something unexpected. Maybe we are sick. Maybe we have to go to work. When we have to cancel plans, it’s important to know how to do it in a polite that does not hurt the feelings or offend the feelings of other people. ###Here list 5 easy steps First, ask “How are you doing?",when you meet your friend or

数组中重复的数字

题目描述 找出数组中重复的数字。 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也