Pārlūkot izejas kodu

Problem Solving Section

Revised wording around zip command to make it more clear.
Proposing taking out item in source list for Windows and mentioned using
a raw string.
d-s-1 8 gadi atpakaļ
vecāks
revīzija
ddbffe01b9
2 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 4 4
      problem_solving.md
  2. 4 3
      programs/backup_ver1.py

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 4 - 4
problem_solving.md


+ 4 - 3
programs/backup_ver1.py

@@ -4,11 +4,12 @@ import time
 # 1. The files and directories to be backed up are
 # specified in a list.
 # Example on Windows:
-# source = ['"C:\\My Documents"', 'C:\\Code']
+# source = ['"C:\\My Documents"']
 # Example on Mac OS X and Linux:
 source = ['/Users/swa/notes']
-# Notice we had to use double quotes inside the string
-# for names with spaces in it.
+# Notice we have to use double quotes inside a string
+# for names with spaces in it.  We could have also used
+# a raw string by writing [r'C:\My Documents'].
 
 # 2. The backup must be stored in a
 # main backup directory