摘要:
while循环: while count<10: print(count) #count=100 count=count+1 print(123) while循环break:终止所有循环 count=0 while count<10: count=count+1 print(count) break 阅读全文
posted @ 2018-08-04 20:58
柳志军
阅读(117)
评论(0)
推荐(0)
摘要:
1.if基本语句 if 条件: 内部代码块 内部代码块 else …… print('……') 2.if支持嵌套 if 1==1: if 2==2 print(n1) print(n2) else: print(n3) else: print(n4) 3.if elif inp =input('请输 阅读全文
posted @ 2018-08-04 17:47
柳志军
阅读(205)
评论(0)
推荐(0)
摘要:
字符串(引号):只有四种情况如下 name="我是编程高手" name='我是编程高手' name="""我是编程高手""" name='''我是编程高手''' 加法: n1="alex" n2="sb" n3="df"n4=n1+n2+n3 print(n4)="alexsbdf" 乘法: n1= 阅读全文
posted @ 2018-08-04 16:39
柳志军
阅读(233)
评论(0)
推荐(0)
摘要:
1.开发语言: 高级语言:Python, Java, PHP ,C# ,Go, ruby, c++ ==>字节码 低级语言:C,汇编 ==>机器码 2.开发语言的对比: PHP类:适用于写网页,局限性 PYthon Java:可以写网页 也可以写后台功能 PYthon 执行效率低,开发效率高Java 阅读全文
posted @ 2018-08-04 13:50
柳志军
阅读(171)
评论(0)
推荐(0)
浙公网安备 33010602011771号