print('Hello world')print("Hello World")
Getting information from the user
name = input("Please enter your name: ")print(name)
(这里可以举上次那个C#软件)
print("Please enter your name: ")name = input()print(name)
print("Hello\nWorld\n!")print("Hello")print("World")print("!")
print("Hello World")print()print("Did you see that blink line?")print("Blank line \nint the middle of string")
Debugging with print
一种古老的技巧,在编译器还么有那么发达的时候,早期程序员就这样debug
这种技巧古老且高效,在之后的学习中我们还会用到这种方法
print("Adding numbers")x = 42 + 206print("Performing division")y = x / 0print("Math complete")
