📜  在python代码示例中连接数字的平方

📅  最后修改于: 2022-03-11 14:45:34.685000             🧑  作者: Mango

代码示例2
def sq(num):
    words = list(str(num)) # split the text
    for word in words:  # for each word in the line:
        print(int(word)**2, end="") # print the word

num = 9119
sq(num)