Numbers and Casting in Python | Python programming tutorial for Beginners
Casting in python is therefore done using constructor functions: int() - constructs an integer number from an integer literal, a float literal (by removing all decimals), or a string literal (providing the string represents a whole number)
コメント