笨办法学Python(习题1)
程序员文章站
2022-06-15 18:42:00
...
一、笨办法学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
转载于:https://www.jianshu.com/p/4412ff941a1b
推荐阅读
-
跟老齐学Python之大话题小函数(1)
-
跟老齐学Python之使用Python操作数据库(1)
-
跟老齐学Python之玩转字符串(1)
-
跟老齐学Python之有容乃大的list(1)
-
笨办法学Python - 习题5: More Variables and Printing
-
新手学python-Day1-鸡汤,变量,编码,进制,判断
-
Python数据分析库之pandas,你该这么学!No.1
-
python编程入门7-1~7-3习题
-
笨办法学Python - 习题8-10: Printing & Printing, Printing
-
Python练习题 一. 使用匿名函数对1~1000求和,代码力求简洁。