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
99 views
0
Encoding problems occur when using Korean in Pycharm.

Hello.I'm studying Python.Version 3.6 is used.PiCham uses version 2017.3.3.Encoding errors occur while practicing opening files.f = open(test.txt, w)f.write(Hangul Test)f.close()Traceback (most recent...


2 answers
47 views
0
I want to save str that changes only numbers in the same character in the list

name = ['m1', 'm2', 'm3', 'm4', 'm5']I want to put a str that is combined with letters and numbers like thisIs there a function in R that functions like paste(m, 1:5, step=?

2 years ago

1 answers
51 views
0
Python Nonrecursive Merge Alignment

def seq_merge_sort(arr): rght = 0; wid = 0; rend = 0; left = 0 k = 1 num = len(arr) temp = [0] * num while(k < num): while(left + k < num): rght = left + k rend = rght + k if(rend > num):...

2 years ago

1 answers
84 views
0
Question about the number of Python list cases. Please help me

For example, suppose you have a list of [a,1,2,]a1, a2, 1a, 2a, 12, 21 Is there a way to write atom mixed in this way? ㅜ

2 years ago

1 answers
154 views
0
How do I add n seconds to datetime.time?

How do I add n seconds to datetime.time?11:34:59 + 3 = 11:35:02I wonder how to use it if I want to add it right away. I tried this way, but it didn't work, so I'm not sure what to do ㅜ

2 years ago

1 answers
42 views
0
Python Pandas Dataframe Simple Questions

in Python PandasWhen you have this kind of data frameI want to extract only rows with 10 stars and print them out on the screen, what should I do?I don't know if I should use the ix function or the io...

2 years ago

2 answers
20 views
0
Python while Moon. Here's a simple question

It may be frustrating because it's such a basic question, but I'm asking this question because I couldn't find a solution. a=[0,1,2,3]b=[2,3,4,5]c=[]while sum(c) < 3: for i in a: c.append(b[i])pri...

2 years ago

1 answers
47 views
0
Django error question(Crying)

While I only know Python, I'm following the Jango homepage tutorial.pools/view.pyI couldn't create it, so I made a random copy of another terminalAnd if you try Runserver,This error appears.For your i...

2 years ago

1 answers
43 views
0
Can't you change the contents of the list in Python function and let it be applied in the main?

def exc(lis1,lis2): lis1,lis2 = lis2,lis1 print(lis1:,lis1) print(lis2:,lis2)a = [1,2,3]b = [4,5,6]exc(a,b)print(a)print(b)When you do this,In the exc function, the a list b list comes out opposite to...

2 years ago

1 answers
18 views
0
What does "//" do to Python?

y = img_index // num_imagesI saw a code like this, and if it was C, it would be annotated, but I don't know what // is doing on Python.

2 years ago
« - 269 - »

© 2024 OneMinuteCode. All rights reserved.