浏览代码

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 年之前
父节点
当前提交
ddbffe01b9
共有 2 个文件被更改,包括 8 次插入7 次删除
  1. 4 4
      problem_solving.md
  2. 4 3
      programs/backup_ver1.py

文件差异内容过多而无法显示
+ 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