学习笔记(13):21天通关Python(仅视频课)-多返回值函数与递归函数

立即学习:https://edu.csdn.net/course/play/24797/282178?utm_source=blogtoedu

import random

def test():
    c1 =chr( random.randint(65,90))
    c2 =chr( random.randint(65,90))
    c3 =chr( random.randint(65,90))
    return  c1,c2,c3

c1,c2,c3 = test()
print(c1,c2,c3)
c4,*c5=test()
print(c4,c5)
*c6,c7 =test()
print(c6,c7)

发布了25 篇原创文章 · 获赞 4 · 访问量 603

猜你喜欢

转载自blog.csdn.net/happyk213/article/details/105194058
今日推荐