Soluții

How to create a file using Python?

To create a new file in Python, use the open() method, with one of the following parameters:

"x" – Create – will create a file, returns an error if the file exist

"a" – Append – will create a file if the specified file does not exist

"w" – Write – will create a file if the specified file does not exist

[mai mult...]

How to open a file using Python?

The key function for working with files in Python is the open() function.

The open() function takes two parameters; filename, and mode.

There are four different methods (modes) for opening a file:

"r" – Read – Default value. Opens a file for reading, error if the file does not exist

"a" – Append – Opens a file for appending, creates the file if it does not exist

"w" – Write – Opens a file for writing, creates the file if it does not exist

"x" – Create – Creates the specified file, returns an error if the file exists

In addition you can specify if the file should be handled as binary or text mode

"t" – Text – Default value. Text mode

"b" – Binary – Binary mode (e.g. images)

[mai mult...]

How to Sort by Multiple Columns in Google Sheets

Când analizați seturi de date complexe în Foi de calcul Google, puteți profita de funcția de sortare integrată pentru a organiza datele. Puteți sorta după coloane individuale sau pentru date mai complexe, puteți sorta după mai multe coloane.
Pentru aceasta, va trebui să deschideți foaia de calcul Google Sheets și să selectați setul de date pe care doriți să îl sortați. Puteți face acest lucru manual selectând celulele folosind mouse-ul sau selectând una dintre celulele din setul de date și apăsând Ctrl + A de pe tastatură.

[mai mult...]