JavaScript
- 7 ответов
- 0 вопросов
3
Вклад в тег
import random
# generate 4 random digits from 1 to 9 without repetition
random_digits = random.sample(range(1, 10), 4)
# assign them to different variables
a, b, c, d = random_digits
print(a, b, c, d)
tcpdump -i any -s0 -vvv -w /home/Traces/name_%02d.pcap -C 50 -W 50 -G 21600 host 192.168.0.1
tcpdump -i any -s0 -vvv -w /home/Traces/name.pcap -C 50 host 192.168.0.1
def go_copy(self):
self.disable_all_buttons()
self.btnGo.configure(text = self.folder_source + ' >> ' + self.folder_target)
self.update()
for path, directories, files in sorted(os.walk(self.folder_source)):
for file in sorted(files):
if file.endswith('.mp3'):
path_source = os.path.join(path, file)
d = os.path.basename(self.folder_source)
f = os.path.relpath(path_source, self.folder_source)
path_target = os.path.join(self.folder_target, d, f)
os.makedirs(os.path.dirname(path_target), exist_ok=True)
shutil.copyfile(path_source, path_target)
self.update()
self.btnGo.configure(text='Let's go!')
self.enable_all_buttons()
require_once('tcpdf.php');
$pdf = new TCPDF('P', 'cm', array(6, 4), true, 'UTF-8', false);
// ... your code to add content to the PDF ...
$pdf->Output('example.pdf', 'I');
var doc = new jsPDF('p', 'cm', [6, 4]);
// ... your code to add content to the PDF ...
doc.save('example.pdf');