from dataclasses import dataclass
@dataclass
class Element:
name: list
leg: list
itog: list
material: list
primechanie: list
vrezki: list
objLegVrez: list
gib: list
count: list
def getRow(letter):
i = 15
u = 0
arr = []
while i < 1000:
i = i + 1
u = u + 1
if (sheet[letter + str(i)].value != None):
arr.append(sheet['I' + str(i)].value)
else:
break
return arr
el_1 = Element(
name=getRow("I"),
leg=getRow("J"),
itog=getRow("K"),
material=getRow("L"),
primechanie=getRow("M"),
vrezki=getRow("N"),
objLegVrez=getRow("O"),
gib=getRow("P"),
count=getRow("Q")
)
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'http://code.jquery.com/jquery-latest.js';
newScript.onload = function() {
alert("Script is ready!");
$(document).ready(function() {
alert("JQuery is ready!");
});
};
var head = document.getElementsByTagName("head")[0];
head.appendChild(newScript);
let array = [];
let performer_time = $('.task-performer_time span');
performer_time.each(function(index, value) {
if(value.innerText === '35 сек.'){
array.push($(this).closest('.task-performer').find('.task-performer_cover a').attr('href'));
}
})
import wmi
a = WMI().Win32_ComputerSystemProduct()[0].UUID
print(a)
{
// row Object property to determine value for this column
field: 'name',
// OR field: row => row.some.nested.prop,
}
{ ..., field: row => row.Field.someField }
using System;
using System.Text.RegularExpressions;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
string input = "blablabla print('Test 1'); blabla print('Test 2')";
string pattern = @"print\(\'([^\']*)\'\)";
foreach (Match m in Regex.Matches(input, pattern))
{
Console.WriteLine(m.Groups[1].Value);
} // foreach
Console.ReadLine();
} // Main
} // class Program
} // namespace
Test 1
Test 2
case 0:
skinZero.SetActive(true);
skinOne.SetActive(false);
skinTwo.SetActive(false);
break;
case 1:
skinZero.SetActive(false);
skinOne.SetActive(true);
skinTwo.SetActive(false);
break;
case 2:
skinZero.SetActive(false);
skinOne.SetActive(false);
skinTwo.SetActive(true);
break;