python学习笔记

来源:互联网 发布:linux反编译class文件 编辑:程序博客网 时间:2024/06/11 04:40

输入和输出

name = raw_input('please enter your name: ')print 'hello,', n

# print absolute value of an integer:a = 100if a >= 0:    print aelse:    print -a      // 每一行都是一个语句,当语句以冒号“:”结尾时,缩进的语句视为代码块。

0 0
原创粉丝点击