python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
102 views
0
I want to read the file line by line and save it to the array

It's exactly what it says.File is hello C world!hello python world!If I say I have it like thisa[0] = 'hello C world!'a[1] = 'hello python world!'I want to make it come out like thisYo

2 years ago

1 answers
92 views
0
How can I determine if the string is a number (integer plus real numbers) in Python?

If you use isdigit(), only the integer is true, and the real type shows FalseI don't think there's anything like isfloat() what should I do?


1 answers
80 views
0
How do I copy files from Python?

I want to know how to copy the file.I thought it would be in the os module, so I looked it up, but it's not here ㅜ

2 years ago

1 answers
152 views
0
I have a question about the stderr output

What's the best way I know?It doesn't look like Python after writing it.I'd appreciate it if you could let me know if there's another wayimport sys#1.print >> sys.stderr, 'spam'#2.sys.stderr.wri...

2 years ago

1 answers
142 views
0
Differences between match and search in python regular expressions

In Python, you try to find if the string contains a something: as a regular expression. import rere.match(r'a[\s\w]+:',a something:)#a preceded by a spaceThis will result in None.import rere.search (r...

2 years ago

1 answers
91 views
0
I'd like to ask you a question about how to determine the number of file lines

It's the same as the title.You need to figure out the number of lines in a very large file.I can only think of how to read all the filesI think it's too inefficient.Please tell me how to use less memo...


1 answers
117 views
0
How to find file extensions with Python

I want to extract the extension from the file path.Isn't there a proper function?

2 years ago

1 answers
95 views
0
Where are the environmental variables in Python?

There are two things I would like to ask.


1 answers
137 views
0
I want to find a .txt file in the directory

How do I find only .txt files in a directory?

2 years ago

1 answers
102 views
0
Is there a way to find out the Python version inside the Python code?

Is there a way to find out the version of Python interpreter in the script?

2 years ago
« - 195 - »

© 2024 OneMinuteCode. All rights reserved.