登录
首页 » python » python 井字棋

python 井字棋

于 2022-06-17 发布 文件大小:1.50 kB
0 82
下载积分: 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 个回复

  • Output_analysis
    说明:  用于处理LPJ-DGVM模型输出数据,这是一个生态模型,模拟的是植被类型(It is used to process the output data of lpj-dgvm model, which is an ecological model that simulates vegetation types)
    2020-09-19 09:37:53下载
    积分:1
  • 数据处理 python
    说明:  进行科学计算、数据处理用到的python教程,作为数据处理入门教程即可。转自嵩天老师的资料。(The course of data processing in scientific calculation)
    2021-01-08 15:06:43下载
    积分:1
  • 基于KNN的验证码识别
    说明:  用KNN算法实现了一个识别4位验证码的系统(A 4-bit Verification Code Recognition System Using KNN Algorithms)
    2020-06-25 13:40:02下载
    积分:1
  • cnn
    基于python tensorflow框架构建的卷积神经网络用来识别图像,附带训练数据集的制作代码。(The convolution neural network based on the python tensorflow framework is used to identify images with the production code of the training data set.)
    2018-02-10 00:06:09下载
    积分:1
  • Ch04
    机器学习实战 第四章实例代码 美国 Machine Learning in Action 4 Charpter instance(Machine Learning in Action 4 Charpter instance)
    2015-02-11 20:46:10下载
    积分:1
  • OFDM
    基于OFDM的多准则下认知无线电资源分配问题的研究,认知无线电资源分配(Cognitive radio resource allocation problem of OFDM multi-criteria research, cognitive radio resource allocation)
    2013-11-23 13:11:42下载
    积分:1
  • SVM
    SVM: 一种分类器,采用最大化分类间隔进行优化参数。 关于这个分类器两点比较重要: 1)SMO优化算法需要掌握, 可以具体参看两篇文章,John Platt的文章 以及“Improvements to Platt s SMO algorithm for SVM Classifier Design” 2)核函数的使用,如何将核函数使用到SVM中,核函数就是空间转换的函数, 说白了就是距离计算函数,如何将同类之间的距离计算的比较近,如何将低维空间转换到易于分类的高维空间。 我自己看书写的程序,采用Python实现,注释比较多(SVM: a classification, a classification intervals to maximize the use of optimization parameters. About this classifier is more important points:     1) SMO optimization algorithms need to know, you can see the specific two articles, John Platt article         And "Improvements to Platt s SMO algorithm for SVM Classifier Design"     2) the use of nuclear function, how to use the SVM kernel function, the kernel function is a function space conversion, That white is the distance calculation function, how relatively close distance between similar calculations, how to convert low-dimensional space to a high-dimensional space is easy classification. I see myself writing program, using Python, notes more)
    2020-07-04 11:40:02下载
    积分:1
  • lstm(二维新)
    说明:  lstm多输入时间序列预测,具有长效记忆性的神经网络算法。(LSTM multi-input time series prediction,Neural network algorithm with long-term memory.)
    2019-05-05 10:51:21下载
    积分:1
  • OpenCV-Computer-Vision-With-Python
    本书叙述如何使用Python中的OpenCV库实现视频捕捉、图像处理、目标检测等功能。(This book will show you how to use OpenCV s Python bindings to capture video, manipulate images, and track objects with either a normal webcam or a specialized depth sensor, such as the Microsoft Kinect.)
    2021-04-24 16:48:48下载
    积分:1
  • 基于依存关系的句法分析统计模型
    语义依存方法的详细操作和编程思想,简明易懂,可以跟着编程(The detailed operation and programming idea of the semantic dependency method are concise and easy to understand, and can be followed by programming)
    2020-06-23 18:20:02下载
    积分:1
  • 696518资源总数
  • 105584会员总数
  • 19今日下载