DeprecationWarning: Sampling from a set deprecated
since Python 3.9 and will be removed in a subsequent version. ten_student = random.sample(st.keys(), k=10)
random.sample()将在python 3.9x后续版本中被弃用,请您知悉。
此警告从下图界面截取,(点击下面图片查看大图)
精品文章:
- Python 完全自学手册
- 海象运算符
- Python中的 `!=`与`is not`不同
- 学习编程的正确方法
- 来源:
老齐教室



