Experimente mit Python
This commit is contained in:
parent
9541434cf0
commit
249c2c8a7b
2 changed files with 14 additions and 1 deletions
|
|
@ -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
13
sosci2word/hello.py
Normal 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)
|
||||
Loading…
Reference in a new issue