登录
首页 » python » python 井字棋

python 井字棋

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

  • Python
    python入门教材,涵盖了python语言的基础教学,并包括三个联手项目(1,外星人入侵游戏 2,数据可视化 3,Web应用程序)(Python Introductory textbook)
    2019-03-27 11:27:49下载
    积分:1
  • comic
    使用flask开发的漫画web网站,供学习参考使用(Cartoon Web Site Developed with Flask)
    2019-06-20 22:45:54下载
    积分:1
  • saolei
    扫雷程序~使用python填写~ 相当好用好厉害哦(Mine-sweeping )
    2013-12-02 23:46:48下载
    积分:1
  • DE.python
    Python实现的差分进化算法源代码 使用Python实现的差分进化算法,引用到Numpy和Scipy,可以支持多核与集群并行计算。使用时只需继承DESolver并定义函数def error_func(self, indiv, *args)作为目标函数即可。(Python implementation of the differential evolution algorithm source code uses the Python implementation of the differential evolution algorithm, a reference to Numpy and Scipy, can support multi-core and parallel computing cluster. Just use the definition of Inheritance DESolver and function def error_func (self, indiv,* args) as the objective function can be.)
    2011-04-25 11:05:15下载
    积分:1
  • 遗传算法2
    通过python语言实现,利用遗传算法求解二元函数最大值(Using Python language and genetic algorithm to solve the maximum of binary function)
    2020-06-16 10:00:11下载
    积分:1
  • 读取Excel报表内容
    【实例简介】python遍历报表内容
    2021-07-11 00:32:13下载
    积分:1
  • 百度地图poi爬虫.py
    【实例简介】爬取百度地图poi坐标.py
    2022-01-11 00:31:31下载
    积分:1
  • realtime-action-detection-master
    说明:  基于UCF101数据集的识别,与实时动作定位(realtime-action-detection)
    2020-09-20 20:07:51下载
    积分:1
  • Python-GUI-Programming-Cookbook
    说明:  Over 80 object-oriented recipes to help you create mindblowing GUIs in Python
    2020-06-23 00:40:01下载
    积分:1
  • flower_CNN
    简单的CNN对花进行分类,里面含有数据和代码(Using CNN to classify the flower,which include data and code.)
    2018-10-23 11:29:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载