Experimente mit Python

This commit is contained in:
Fischlurch 2023-05-19 20:17:18 +02:00
parent 9541434cf0
commit 249c2c8a7b
2 changed files with 14 additions and 1 deletions

View file

@ -21,6 +21,7 @@ document.add_paragraph(
document.add_paragraph(
'first item in ordered list', style='List Number'
)
document.add_page_break()
document.add_picture('Ichthyo-Pp.png', width=Inches(3))
@ -41,6 +42,5 @@ for qty, id, desc in records:
row_cells[1].text = id
row_cells[2].text = desc
document.add_page_break()
document.save('demo.docx')

13
sosci2word/hello.py Normal file
View file

@ -0,0 +1,13 @@
def funny(parameter):
print("Funny!")
print("mein X ist "+str(parameter))
for x in range(0,9):
if x > 5:
funny(x)
else:
funny(x*10)
funny(34)