[Python] How To Use Doubly Ended Queue (Deque)
Deque (Doubly Ended Queue) is a classic data structure, and it is implemented as a module collections
in Python.
Deque (Doubly Ended Queue) is a classic data structure, and it is implemented as a module collections
in Python.
Python is a simple and beautiful program language. Today I will record how to learn Python quickly. The cost time, I think it’s just only one hour.
Read More »Easy Python Tutorial Speed Run —— Only one hourThe class of Python is the basically type of module designing. It is also the object-oriented of Python.
We can give the object a function to copy some properties if we need.
Read More »[Python] Tutorial(15) ClassToday my Python note will introduce how to use the package “os” and how to use read and write the file.
Especial we do some NLP research, Reading or Writing a file is a necessary skill.
Read More »[Python] Tutorial(14) os, read and write the fileThe process of coding, it always have some bug.
Sometimes, we maybe think about any situations we can consider, but the wrong always happening. It is even have wrong happening after we execute the program for a long running time. And we don’t know!
Read More »[Python] Tutorial(13) try & exceptBefore we start, I need to explain the concept of “Package”. Calling the “package” to “package” is my habit, if you feel my teaching is wrong, welcome to message me, very thanks. Because in the field of programming, I am just a little rookie.
Read More »[Python] Tutorial(12) Import package: time, datetime, mathPython has many kinds of data types, so it’s hard to me to give examples of all of them.
So, I introduce the data type we use in Python by simple today.
“Tuple”, as similar as List. We can store the different data type value in them. But tuple we can’t add, remove, update our value in tuple.
Read More »[Python] Tutorial(11) Tuples, Sets, Dictionary“List”, is a most commonly used data type in Python. Of course, if you are learning Machine Learning. (The most commonly used data type probably is Numpy.)
If you are used to reading tutorial of Python official, maybe you can refer to this website.
Read More »[Python] Tutorial(10) List, Array of PythonI want to share with you how to use a important feature “lambda” today.
This is a feature that I didn’t use often. After all, I am too lazy, haha.
I always feel that I can use “def” directly XD (This is not a good habit
Read More »[Python] Tutorial(9) lambdaThe previous tutorial teach how to create a basically function. Today I note a skill I rarely to use, the value we will give function: default, *args, **kwargs.
The explanation part will a bit in my way, I guess you go trying more different code, don’t care about my nonsense. Hahahahaha.
Read More »[Python] Tutorial(8) function, default , *args, **kwargs