mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
be more clear about current working directory
This commit is contained in:
@@ -76,13 +76,13 @@ if __name__ == '__main__':
|
||||
<p>You can run the program from the command line. On Linux, it would look like this. (These may take some time, depending on the speed of your computer, and there is no progress bar. Just be patient!)
|
||||
|
||||
<pre class='nd screen'>
|
||||
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "HAWAII + IDAHO + IOWA + OHIO == STATES"</kbd>
|
||||
<samp class=p>you@localhost:~/diveintopython3/examples$ </samp><kbd>python3 alphametics.py "HAWAII + IDAHO + IOWA + OHIO == STATES"</kbd>
|
||||
<samp>HAWAII + IDAHO + IOWA + OHIO = STATES
|
||||
510199 + 98153 + 9301 + 3593 == 621246</samp>
|
||||
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "I + LOVE + YOU == DORA"</kbd>
|
||||
<samp class=p>you@localhost:~/diveintopython3/examples$ </samp><kbd>python3 alphametics.py "I + LOVE + YOU == DORA"</kbd>
|
||||
<samp>I + LOVE + YOU == DORA
|
||||
1 + 2784 + 975 == 3760</samp>
|
||||
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "SEND + MORE == MONEY"</kbd>
|
||||
<samp class=p>you@localhost:~/diveintopython3/examples$ </samp><kbd>python3 alphametics.py "SEND + MORE == MONEY"</kbd>
|
||||
<samp>SEND + MORE == MONEY
|
||||
9567 + 1085 == 10652</samp></pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user