Hướng dẫn how do i print the last 2 digits in python? - làm cách nào để in 2 chữ số cuối trong python?

With my code, I want to get the last two digits of an integer. But when I make x a positive number, it will take the first x digits, if it is a negative number, it will remove the first x digits.

Code:

number_of_numbers = 1
num = 9
while number_of_numbers 

Bài Viết Liên Quan

Chủ Đề