笨办法学Python(习题1)

一、笨办法学python习题 1代码

print("Hello World!")     
print("Hello Again")   
print("I like typing this.")
print("This is fun.")
print("Yay! Printing.")
print("I'd much rather you 'not'.")
print('I "said" do not toch this.')

二、运行方式

将以上代码段文件命名为ex1.py,存放在D:\我的程序中。
windows中:开始\搜索\powershell,打开powershell
在powershell中进入到自己所保存的程序文件工作目录中
在powershell中进入到工作目录中,使用命令为
cd d:\我的程序
进入到工作目录后执行代码
python ex1.py
完整方式为:

cd d:\我的程序
   python ex1.py

你可能感兴趣的:(笨办法学Python(习题1))