Python Ερωτήσεις και απαντήσεις

Python είναι μια γλώσσα προγραμματισμού που σας επιτρέπει να ενσωματώσει συστήματα πιο αποτελεσματικ
Danil Vanin
Ερώτηση από Danil Vanin
273 προβολές
4
A
Απάντηση από adminos

You can use the set() method to remove duplicates from a list. The set() method will take any iterable as an argument and return a set object of unique elements.


Example:


my_list = [1,2,3,4,3,2,1]
my_set = set(my_list)
print(my_set)
# Output: {1, 2, 3, 4}
G
Ερώτηση από Guest
489 προβολές
2

How to use write to file function in Python?

Stephen Prastman
Απάντηση από Stephen Prastman

The Write to File or Input/Ouput function is defined by write(), but this is a command that needs to be associated with the other functions. However, the discussion and support related to this function is extensive, therefore I recommend visiting the Python website to learn more about it.


Python Documentation: https://docs.python.org/2/tutorial/inputoutput.html

G
Ερώτηση από Guest
382 προβολές
2
Stephen Prastman
Απάντηση από Stephen Prastman

You can use the Python Documentation page provided by the developers in order to learn about the management of the subprocesses in python. The subprocesses part of Python is extended and vastly documented. You will find all the information you need using the link below.


Python Documenation: https://docs.python.org/2/library/subprocess.html

R
Απάντηση από Robert Polubinski

It doesn't matter. One version has extra libraries, but if you remove it doesn't mean you will lack functionality. You can remove any of the package as it's safe to your programming environment and operating system.

N
Ερώτηση από Nain mutant
550 προβολές
2

I didn't know that I had Python on my computer. From what I've read, I don't need it. But I'm not sure if I can remove it safely.

J
Απάντηση από João Severino

If you want to remove it go to the control panel on your computer and select add and remove programs
search for the one you want to remove and press to uninstall it
it-s safe and removes unwanted programs

B
Ερώτηση από Brigitte Blouin
538 προβολές
2
R
Απάντηση από Ron Francis

It's a scripting language that can be used to automate programs.
The only time I've seen it in use is with a program called Blender, a free 3d modeling program.
Programmers write Python scripts that can be run within Blender to perform all sorts of various tasks.

P
Απάντηση από Pete Clapp

It is recommended to uninstall the previous version before you install the new version. For example, if you have version 2 and you want to install version 3, uninstall the previous version. But installing a new build (2.2 over 2.3), you can simply install over the existing one.

B
Ερώτηση από Brigitte Blouin
514 προβολές
2
R
Απάντηση από Ron Francis

Its a scripting language that can be used to automate programs.
The only time I've seen it in use is with a program called Blender, a free 3d modeling program.
Programmers write Python scripts that can be run within Blender to perform all sorts of various tasks.

H
Ερώτηση από Hancock
416 προβολές
2
R
Απάντηση από Robert Polubinski

You can have a portable version of Python to place it on a CD to run it from there. There is one already created for you and all you need to do is to copy the package on the CD and run it from that location and that's it, but remember that if you want to run a package on another path you will have to specify the path. For example:


F:\python.exe PATH_TO_FILE\example.py

Δείτε περισσότερες ερωτήσεις και απαντήσεις

Κάντε μια ερώτηση σχετικά με Python