登录
首页 » python » python 井字棋

python 井字棋

于 2022-06-17 发布 文件大小:1.50 kB
0 134
下载积分: 2 下载次数: 1

代码说明:

PYTHON 井字棋,#井字棋 import random #是否重来一次 def playAgain(): print("你想重玩一次吗?(是/否)") return input() == "是" #选择什么符号棋子 def inputPlayerLetter(): letter = "" while not (letter =="X" or letter =="O"): print ("你想选x还是o") letter = input().upper() if letter == "X": return ["X","O"] else: return ["O","X"]

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 08神经网络逼近股票收盘均价2
    python演示神经网络来逼近股价走势的预测,基于时间序列的预测(Python demonstrates neural network to approximate the prediction of stock price trend, based on time series prediction)
    2019-05-01 16:23:47下载
    积分:1
  • binocular
    说明:  实现双目测距功能,需要python环境,安装OpenCV,自行标定(To achieve binocular ranging function, you need Python environment, install OpenCV, self-calibration)
    2021-04-12 13:28:57下载
    积分:1
  • 基于BP adabooot强分类器预测,实现优化的功能
    说明:  包括分类与预测、聚类分析、关联基本挖掘建模办法,规则、时序模式以及离群点监测(It includes classification and prediction, clustering analysis, association basic mining modeling methods, rules, temporal patterns and outlier monitoring)
    2020-08-28 10:52:26下载
    积分:1
  • emd-lstm
    说明:  基于经验模态分解成多个模态和一个残余量,再利用长短神经网络预测分别训练每一个模态和残余量,最后重构结果,得到预测结果(Prediction based on empirical mode decomposition and long short neural network)
    2020-06-29 14:40:02下载
    积分:1
  • 决策树三种经典算法实现
    python实现决策树分类的三种经典算法(Python realizes three classical arithmetic of decision tree classification)
    2020-11-26 23:09:30下载
    积分:1
  • 新浪微博分布式爬虫
    基于开源框架scrapy-redis开发的分布式网络爬虫,编程语言为python,数据库为mongodb,采用抓取新浪微博平台的进行测试。
    2022-02-27 08:55:00下载
    积分:1
  • algorithm
    说明:  利用python实现的二分法思想以及几种排序、二叉树的删除算法实现(The idea of dichotomy realized by Python and the implementation of several sorting and deletion algorithms of binary tree)
    2020-06-18 10:40:02下载
    积分:1
  • PR代码及资料
    1. 以身高为例,画出男女生身高的直方图并做对比; 2. 采用最大似然估计方法,求男女生身高以及体重分布的参数; 3. 采用贝叶斯估计方法,求男女生身高以及体重分布的参数(注明自己选定的参数情况); 4. 采用最小错误率贝叶斯决策,画出类别判定的决策面。并判断某样本的身高体重分别为(160,45)时应该属于男生还是女生?为(178,70)时呢?(1. Take the height as an example, draw the histogram of the height of boys and girls and make a comparison. 2. Using the maximum likelihood estimation method, the parameters of height and weight distribution of male and female students are obtained. 3. Using Bayesian estimation method, the parameters of height and weight distribution of male and female students were calculated (indicating the parameters selected by themselves). 4. Using Bayesian decision-making with minimum error rate, the decision-making surface of category decision-making is drawn. When the height and weight of a sample are (160,45), should it belong to boys or girls? For (178,70)?)
    2018-11-23 19:26:56下载
    积分:1
  • tests
    说明:  python core test files
    2019-06-01 11:41:19下载
    积分:1
  • pydev_models
    pydev models example
    2017-10-02 06:15:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载