Soluții

Python round()

Funcția round() returnează un număr în virgulă mobilă rotunjit la numărul specificat de zecimale.

Sintaxa funcției round() este:

round(number, ndigits)

Funcția round() ia doi parametri:

number – numărul care trebuie rotunjit
ndigits (opțional) – număr până la care se rotunjește numărul dat; implicit la 0

Funcția round() returnează:

Cel mai apropiat număr întreg de numărul dat dacă nu este furnizat ndigits
Număr rotunjit la ndigits cifre dacă este furnizat ndigits

[mai mult...]

Python repr()

Funcția repr() returnează o reprezentare imprimabilă a obiectului dat.

Sintaxa lui repr() este: repr(obj)

Funcția repr() ia un singur parametru:

obj – obiectul a cărui reprezentare imprimabilă trebuie returnată

[mai mult...]

How to Record the Sound Coming From Your PC (Even Without Stereo Mix)

You don’t have to hold up a microphone to your computer’s speakers to record its audio. Even if you don’t have a Stereo Mix option on your PC, you can easily record the sound coming from any Windows PC.

You can record the sound coming from your PC in numerous ways, and we’re going to show you some of the best we’ve found. The first three options use only software, and the third relies on an old trick that connects your computer’s audio output to its audio input with an audio cable.

An audio waveform.

[mai mult...]