python输入和输出
qq_36217349
这个作者很懒,什么都没留下…
展开
-
Python基础
Python是一种计算机编程语言。 Python的语法比较简单,采用缩进的方式。 # print absolute value of an integer: a = 100 if a >= 0: print(a) else: print(-a) 以#开头的语句是注释,注释是给人看的,可转载 2016-09-28 10:37:05 · 148 阅读 · 0 评论 -
Python输入和输出
输出 >>> print('hello, world') 同时可以接受多个字符串,用逗号‘,’隔开,形成输入: >>> print('The quick brown fox', 'jumps over', 'the lazy dog') The quick brown fox jumps over the lazy dog >>> print('100 + 200 =', 100转载 2016-09-27 21:30:44 · 270 阅读 · 0 评论