-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotes
More file actions
69 lines (48 loc) · 1.5 KB
/
Notes
File metadata and controls
69 lines (48 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CPU Bound => Multi Processing
I/O Bound, Fast I/O, Limited Number of Connections => Multi Threading
I/O Bound, Slow I/O, Many connections => Asyncio
=========================================
Need FFmpeg in our PATH --> need FFmpeg as an exe
1. Edit the system environment vaRIABLES
2. Click on Environment Variables
3. System variables
C:\XXX\AppData\Local\Programs\Python
C:\XXX\AppData\Local\Programs\Python\Python39
C:\XXX\AppData\Local\Programs\Python\Python39\Scripts <-- FFMPEG is placed here
Windows Key + R --> Type "appdata" to access the appdata folder
=========================================
Pass By Value --> A copy is made. The actual value DOES NOT CHANGE
def fun(a):
a+=10
print("Inside function call",a)
a=20
print("Before function call",a)
fun(a)
print("After function call",a)
Python
Copy
Output:
Before function call 20
Inside function call 30
After function call 20
=========================================
Pass By Reference --> The original is passed and the actual value is changed
def fun(a):
a.append('i')
print("Inside function call",a)
a=['H']
print("Before function call",a)
fun(a)
print("After function call",a)
Python
Copy
Output:
Before function call ['H']
Inside function call ['H', 'i']
After function call ['H', 'i']
=========================================
https://learnpython.com/blog/python-requirements-file/
# How to get project modules
pip freeze > requirements.txt
# How to install the modules from requirements.txt
pip install -r requirements.txt