22.完成彩票36選7的功能. 從36個數中隨機的產生7個數. 最終獲取到7個不重復的數據作為最終的開獎結果.隨機數: from random import randintrandint(0, 20) # 0 - 20 的隨機數 import random
set = set()
# 如果集合元素到達7個,循環停止
while 7-len(set):r = random
題目鏈接:https://vjudge.net/problem/HDU-1520 There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor relation forms a tree