Python规范
2021-07-15 01:06
                         标签:需要   lease   注意   ber   为什么   inpu   The   wan   \n    @author: peng.wang 注意点: input       输入的默认是数字,如果需要输入的是字符串,则需要在输入前加入“”或者‘‘ ‘‘‘ Python规范 标签:需要   lease   注意   ber   为什么   inpu   The   wan   \n    原文地址:http://blog.51cto.com/1464490021/2164521
‘‘‘
Created on 2018年8月26日
①#coding=utf-8,一定要放在第一行,至于为什么,不重要,就当成是规范了。
②Python中的注释用的是,单行用的是#,多行用三个‘
③等待用户输入
raw input   输入的均是字符串
#line=raw_input("this is text line...\n")
#print "hello,Python"+" "+line
num=input("please enter the number :")
print num
print num+"1234"
上一篇:java调用wsdl接口
下一篇:python的数字