Python內建函數(58)——slice,python內建58slice英文文檔:class slice(stop) class slice(start, stop[, step])Return a slice object representing the set of indices specified by range(start, stop, step). The start and step arguments default to None. Slice objects have
Python內建函數(56)——set,python內建56set英文文檔:class set([iterable])Return a new set object, optionally with elements taken from iterable. set is a built-in class. See set and Set Types — set, frozenset for documentation about this class.For other containers
Python內建函數(53)——repr,python內建53repr英文文檔:repr(object)Return a string containing a printable representation of an object. For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to
005-python基礎-使用者輸入與模組初認識,005-python模組一、注釋當前行注釋:# 被注釋內容多行注釋:""" 被注釋內容 """二、使用者輸入1 #!/usr/bin/env python2 #_*_coding:utf-8_*_3 #name = raw_input("What is your name?") #only on python 2.x4 name = input("What is your name?")5 print("Hello " + name