random.sample()将在python 3.9x后续版本中被弃用


  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后续版本中被弃用,请您知悉。

random.sample()将在python 3.9x后续版本中被弃用_第1张图片

  此警告从下图界面截取,(点击下面图片查看大图)

random.sample()将在python 3.9x后续版本中被弃用_第2张图片

(回页首)


上一篇  <<  本文  >>  下一篇

老齐漫画头像

精品文章:

    • Python 完全自学手册
    • 海象运算符
    • Python中的 `!=`与`is not`不同
    • 学习编程的正确方法
    • 来源: 老齐教室

    你可能感兴趣的:(笔记)