pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jerry-git/learn-python3/commit/c79d1ee950c6680147712abedceedce195030fb5

/> Update dir structure · jerry-git/learn-python3@c79d1ee · GitHub
Skip to content

Commit c79d1ee

Browse files
committed
Update dir structure
1 parent c8ab305 commit c79d1ee

28 files changed

Lines changed: 12457 additions & 27 deletions

README.md

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

notebooks/beginner/html/file_io.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11827,7 +11827,7 @@ <h2 id="Working-with-paths">Working with paths<a class="anchor-link" href="#Work
1182711827
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;current directory: </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">current_dir</span><span class="p">))</span>
1182811828
<span class="c1"># Note: in .py files you can get the dir of current file by os.path.dirname(__file__)</span>
1182911829

11830-
<span class="n">data_dir</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">current_dir</span><span class="p">,</span> <span class="s1">&#39;data&#39;</span><span class="p">)</span>
11830+
<span class="n">data_dir</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="n">current_dir</span><span class="p">),</span> <span class="s1">&#39;data&#39;</span><span class="p">)</span>
1183111831
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;data directory: </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">data_dir</span><span class="p">))</span>
1183211832
</pre></div>
1183311833

@@ -11845,8 +11845,8 @@ <h2 id="Working-with-paths">Working with paths<a class="anchor-link" href="#Work
1184511845

1184611846

1184711847
<div class="output_subarea output_stream output_stdout output_text">
11848-
<pre>current file: /Users/jerry/github/jerry-git/learn-python3/notebooks/beginner/file_io.ipynb
11849-
current directory: /Users/jerry/github/jerry-git/learn-python3/notebooks/beginner
11848+
<pre>current file: /Users/jerry/github/jerry-git/learn-python3/notebooks/beginner/notebooks/file_io.ipynb
11849+
current directory: /Users/jerry/github/jerry-git/learn-python3/notebooks/beginner/notebooks
1185011850
data directory: /Users/jerry/github/jerry-git/learn-python3/notebooks/beginner/data
1185111851
</pre>
1185211852
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

notebooks/beginner/file_io.ipynb renamed to notebooks/beginner/notebooks/file_io.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"print('current directory: {}'.format(current_dir))\n",
3232
"# Note: in .py files you can get the dir of current file by os.path.dirname(__file__)\n",
3333
"\n",
34-
"data_dir = os.path.join(current_dir, 'data')\n",
34+
"data_dir = os.path.join(os.path.dirname(current_dir), 'data')\n",
3535
"print('data directory: {}'.format(data_dir))"
3636
]
3737
},
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy