第一天的代码——输入输出和计算

代码
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 touch this.')
# Anything after the # is ingnord by python.octothorpe.

print ("now I will count my chickens.")

print ("Hens",20+30/6)
print ("Roosters",100-25*3%5)

print ("now I will count my eggs.")
结果
PS C:\Users\HH\lpthw> python ex1.py
Hello world!
Hello again
I like typing this.
This is fun.
Yay!Printing.
I'd much rather you 'not'.
I "said" do not touch this.
now I will count my chickens.
Hens 25.0
Roosters 100
now I will count my eggs.
PS C:\Users\HH\lpthw>

上一篇:openssl 自签发证书步骤


下一篇:Liquidity Planner – Tips