Python基础

Posted by Kerwen Blog on July 11, 2017

Python 标准库目录

https://docs.python.org/3.5/library/index.html

Functions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def FunctionName():
    Function body

def FunctionName(para):
    Function body
    
def FunctionName(para1, para2):
    Function body
    
def FunctionName(para1, para2=DefaultValue):
    Function body
    
def FunctionName(para1, *args):
    Function body
    
def FunctionName():
    Function body
    return outputPara

input

1
2
StudentName = input("Enter student name:")
StudentId = input("Enter student id:")