- Start docker container with desired gcc version
- Add your pynev directory as a volume inside the container
- only use the same path as your user if you know what you are doing
Command:
# pip install Dijkstar python-constraint | |
from constraint import * | |
from dijkstar import Graph, find_path | |
tam = 10 | |
problem = Problem() | |
variables = [] | |
for i in range(tam): |
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
_ "github.com/newrelic/go-agent/v3/integrations/nrmysql" | |
"github.com/newrelic/go-agent/v3/newrelic" | |
"gorm.io/driver/mysql" | |
"gorm.io/gorm" |
import hashlib | |
import psutil | |
BUF_SIZE = 65536 | |
exes = set() | |
for p in psutil.process_iter(): | |
exe = p.exe() |
llvmlite | |
numpy==1.20.1 | |
netdata-pandas==0.0.32 | |
numba==0.50.1 | |
scikit-learn==0.23.2 | |
pyod==0.8.3 | |
wheel | |
cython | |
pybind11 |
import setuptools | |
if __name__ == "__main__": | |
setuptools.setup() |
from sqlalchemy import create_engine | |
from sqlalchemy.ext.automap import automap_base | |
from sqlalchemy.orm import sessionmaker | |
url = 'mysql://<user>:<password>@<ip>:<port>/<name>' | |
engine = create_engine(url, echo=True) | |
Base = automap_base() | |
Base.prepare(autoload_with=engine) | |
Session = sessionmaker(bind=engine) | |
session = Session() |
In Python <= 3.8, if you run:
from collections import namedtuple
MyClass = namedtuple("MyClass", "")
m = MyClass()
print(m.__class__['__name__'])
print(type(m.__class__['__name__']))
It will raise TypeError in:
from constraint import * | |
def fact(n): | |
f = 1 | |
for i in range(1,n+1): | |
f = f * i | |
return f |
from collections import defaultdict | |
from constraint import * | |
example = """.......92 | |
...1...4. | |
9..24...7 | |
8..7..15. | |
65.9.1.78 | |
.74..8..6 | |
3...95..1 |