# -*- coding: cp936 -*-
"""
def num(a,b,i):
return a*b+i
if __name__==‘__main__‘:
t=[]
while 1:
a=input(‘a:‘)
b=input(‘b:‘)
i=input(‘i:‘)
if a*b+i>=11:
t.append(a*b+i)
print t
continue
else:
pass
def num1():
t=[]
x=input(‘输入一个数字x:‘)
for i in range(0,x+1):
t.append(i)
print sum(t)
if __name__==‘__main__‘:
num1()
import random
def num():
i=0
num=random.randint(1,100)
min=1
max=100
while True and i<=5:
num1=input(‘请输入数字:‘)
if num1 == num:
print ‘你猜 对了:‘,num1
break
if num1>num:
print‘你猜的过大了:‘,num1
elif num1<num:
print ‘你猜的过小了:‘,num1
if __name__==‘__main__‘:
num()
"""
时间: 2024-10-29 02:44:44