File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1414 },
1515 {
1616 "cell_type" : " code" ,
17- "execution_count" : 3 ,
17+ "execution_count" : 2 ,
1818 "metadata" : {},
1919 "outputs" : [
2020 {
2323 " True"
2424 ]
2525 },
26- "execution_count" : 3 ,
26+ "execution_count" : 2 ,
2727 "metadata" : {},
2828 "output_type" : " execute_result"
2929 }
3232 " from pathlib import Path\n " ,
3333 " \n " ,
3434 " # Referenz auf die Datei \" loremipsum.txt\"\n " ,
35- " ipsum = Path(\" loremipsum.txt\" )\n " ,
35+ " ipsum = Path(\" Beispielcode \" ) / Path( \" loremipsum.txt\" )\n " ,
3636 " \n " ,
3737 " # Existiert diese Datei? Ist es überhaupt eine Datei?\n " ,
3838 " ipsum.exists() and ipsum.is_file()"
8080 },
8181 {
8282 "cell_type" : " code" ,
83- "execution_count" : 5 ,
83+ "execution_count" : 3 ,
8484 "metadata" : {},
8585 "outputs" : [
8686 {
9797 }
9898 ],
9999 "source" : [
100- " lorem_ipsum = Path(\" loremipsum.txt\" ).open(\" r\" )\n " ,
100+ " lorem_ipsum = ( Path(\" Beispielcode \" ) / Path( \" loremipsum.txt\" ) ).open(\" r\" )\n " ,
101101 " print(lorem_ipsum.tell())\n " ,
102102 " print(lorem_ipsum.read(5))\n " ,
103103 " print(lorem_ipsum.tell())\n " ,
You can’t perform that action at this time.
0 commit comments