ex1 to ex3.py
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ex1 to ex3.py相关的知识,希望对你有一定的参考价值。
1 #_*_ coding: utf-8 _*_ #表示的是在脚本中使用unicode utf-8 编码 2 print ("hello world!") 3 print ("hello again") 4 print ("this is fun") 5 print ("yay! printing") 6 print ("i‘d much rather you ‘not‘") 7 print (‘i "said" do not touch this.‘)
1 """# A comment,this is so you can read your program later 2 # anything after the # is ignored by python 3 4 print ("i could have code like this.") # and the commment after is ignored""" 5 6 # you can also use a comment to "disable" or comment out a piece od code: 7 #print "this won‘t run" 8 9 print ("this will run") 10 print ("hi # here")
1 # -*- coding: utf-8 -*- 2 """print ("i will now count chickens:") 3 4 print ("hens",25+30/6) 5 print ("roosters",100-25*3%4) 6 7 print ("now i will count the eggs:") 8 9 print (3+2+1-5+4%-1/4+6) 10 11 print ("is it true that 3+2<5-7?") 12 13 print (3 + 2 < 5 - 7) 14 15 print ("what is 3 + 2?", 3+2) 16 17 print ("what is 5 - 7?",5-7) 18 19 print ("oh,that‘s why it‘s false") 20 21 print ("how about some more.") 22 23 print ("is it great?", 5 > -2) 24 print ("is it greater or equal?" ,5 >= -2) 25 print ("IS it less or equal ?", 5 <= -2)"""
以上是关于ex1 to ex3.py的主要内容,如果未能解决你的问题,请参考以下文章
[TIA PORTAL][CONVERT] Convert Char Array to DInt...DInt to Char Array..Useful and easy function(代码片段
Failed to convert property value of type ‘java.lang.String‘ to required type ‘int‘ for property(代码片段
[RxJS] Implement RxJS `mergeMap` through inner Observables to Subscribe and Pass Values Through(代码片段
java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.database.sqlite异常(代码片段
git项目初次push提示error: failed to push some refs to https://gitee.com/xxxx/gittest.git’解决方案 --九五小庞(代码片段