from sys import exit import random def Arrfor(str): #CONTST = CONTST + 1 artificial = input("请输入1-9之间任意一个数字:") art = int(artificial) #将字符串类型转换为int类型 if art < 1: print("数值不合法!还有",CONTST + "次机会哦") Arrfor(str); if art > 9:…
# -*- coding: utf-8 -*- """ Created on Thu Mar 16 14:52:58 2017 @author: Jarvis """ import tensorflow as tf import numpy as np import pandas as pd import math import random from pandas import Series,DataFrame def cal_dis(a,b)…