Commit a964d8ce by BellCodeEditor

auto save

parent 62f267c9
Showing with 38 additions and 6 deletions
...@@ -2,8 +2,5 @@ file = open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',en ...@@ -2,8 +2,5 @@ file = open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',en
a = file.readlines() a = file.readlines()
for i in a: for i in a:
data = i.split() data = i.split()
sum=0 print(data[0])
for sales in data[1:]: print(data[1:])
sum=sum+int(sales) \ No newline at end of file
result=data[0]+str(sum)
print(result)
\ No newline at end of file
n=input()
x=int(input().split())
m=0
k=[]
for i in x:
if i < x[m]:
k.append(1)
else:
k.append(0)
x=int(input())
p=[]
if x>4 and x<12:
p.append(1)
else:
p.append(0)
if x>4 and x<12 or x%2==0:
p.append(1)
else:
p.append(0)
if x>4 and x<12 or x%2==0:
if x%1==0:
p.append(1)
else:
p.append(0)
if not x>4 and x<12 or x%2==0:
if x%1==0:
p.append(1)
else:
p.append(0)
print(p)
\ No newline at end of file
print(int(input('乘数1 '))*int(input('乘数2 ')))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment