Explanation:Execute in the shell to verify. 3. Which of the following statement prints hello\example\test.txt ?
A. print(“hello\example\test.txt”)
B. print(“hello\\example\\test.txt”)
C. print(“hello\”example\”test.txt”)
D. print(“hello”\example”\test.txt”)
Answer:A
Explanation:Execute in the shell to verify. 3. Which of the following statement prints hello\example\test.txt ?
A. print(“hello\example\test.txt”) B. print(“hello\\example\\test.txt”) C. print(“hello\”example\”test.txt”) D. print(“hello”\example”\test.txt”)
Explanation:\is used to indicate that the next \ is not an escape sequence. 4. Suppose s is “\t\tWorld\n”, what is s.strip() ?