Можно ли с нуля обучится программированию, используя только интернет и не тратив деньги?
нужны люди, которым я смогу задать пару вопросов.
<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
$USER->Authorize(1);
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
?>
SELECT * FROM Numbers ORDER BY ABS(num - заданное_число) ASC LIMIT 1
from pydantic import BaseModel, ValidationError, field_validator
class Model(BaseModel):
x: int
@model_validator(mode='before')
@classmethod
def validate_x(cls, v: int) -> int:
if x is None:
raise ValueError('X is None')
return cls
try:
Model(x=None)
except ValidationError as e:
print(e)
"""X is None"""
let a = 3;
let b = 15;
let one = {};
one.a = a;
one.b = b;
a = 42;
console.log(one.a, one.b); // 3, 15
console.log(a, b); // 42, 15
let a = 3;
let b = 15;
let two = new Map();
two.set('a', a);
two.set('b', b);
a = 42;
console.log(two.get('a'), two.get('b')); // 3, 15
console.log(a, b); // 42, 15
grep -r '$siteLanguage' /site/root/*
from datetime import datetime
def foo():
print('ok ')
start = datetime.now()
for i in range(100000000):
delta = datetime.now() - start
if delta.seconds > 0:
foo()
start = datetime.now()