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
90 views
0
When the current utc time value is inserted through spark sqlcontext, it is inserted into the current local state, not utc

After purifying the data frame through sql context in spark, Write the code below and attach it to jdbc write.df_2.createOrReplaceTempView(vms_status)q = SELECT srv_name, srv_serial, groups_id, item_i...

2 years ago

1 answers
15 views
0
I have a question about the Python list product operation.

import numpy as nptable = [[0]*5]*5table[0][0] = -1print(table[0][0])print(np.reshape(table, (5, 5)))table2 = [[0,0,0,0,0]*5]table2[0][0] = -1print(table2[0][0])print(np.reshape(table2, (5, 5))) #tabl...

2 years ago

1 answers
12 views
0
I have a question about Python def function

def func(a,b,c): ~~ f1=open(c:\\jupyurt\\a.txt,w); f1.write() f1.close()def func2(A,B,C): ~~ f2=open(c:\\jupyurt\\a.txt,w); f2.write() f2.close()As in the above example, the two functions are define...

2 years ago

1 answers
69 views
0
Python questions [('a', 5), ('b', 2), ('c', 1), ('b', 2), ('a', 9), ('d', 3), ('c', 13), ('e', 6)] sort data in numbers like this.

data = [('a', 5), ('b', 2), ('c', 1), ('b', 2), ('a', 9), ('d', 3), ('c', 13), ('e', 6)] This kind of data [('a', 14), ('c', 14), ('e', 6), ('b', 4), ('d', 3)] I'd like to make a list that sorts the v...

2 years ago

2 answers
137 views
0
I want to include the reference character when sliding the Python string.

If you just slice based on certain characters, those characters don't appear, but only the words are cut off and stored in the list. For exampleHello, world. If you slice it according to ,[Hello, worl...

2 years ago

1 answers
13 views
0
I'd like to write a while sentence using a dictionary.

Let's use a dictionary to declare items={ in the form of a product:value:650, milk:1100, cola:1200, can coffee:500, snack:700}. Use the while statement to input the product indefinitely and output the...

2 years ago

2 answers
13 views
0
Tie Python Python List

I got the whole number as input.If I get 1234567, I want to make a list like [765], [432], [1] Is there a way?

2 years ago

1 answers
15 views
0
Beginner) If I save Python, can I run it with the contents I saved the next time I use it?

As the title says, it's a question.If you get a certain value from Python, run the program, and then run Python next time, the entered value disappears, and it starts with initialization at the next e...

2 years ago

1 answers
17 views
0
Counting the number of Python lists

For example, a=[1,2,3,3,4,]b=[2.4..5.6]When given in this way

2 years ago

2 answers
14 views
0
Python numeric cascading output questions

Hello, I've been trying to solve Python problems and I have a question, so I'm posting it.The goal is to take the natural number N and print it out from 1 to N in the first row, 2 in the second row, a...

2 years ago
« - 388 - »

© 2024 OneMinuteCode. All rights reserved.