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
Python內建函數(54)——reversed,pythonreversed英文文檔:reversed(seq)Return a reverse iterator. seq must be an object which has a __reversed__() method or supports the sequence protocol (the __len__() method and the __getitem__() method with integer arguments
Python內建函數(55)——round,python內建55round英文文檔:round(number[, ndigits])Return the floating point value number rounded to ndigits digits after the decimal point. If ndigits is omitted, it returns the nearest integer to its input. Delegates to