Commit 8fe6dd35 by BellCodeEditor

auto save

parent 3c622bfb
Showing with 28 additions and 0 deletions
alist = [1,3,5,7]
num = []
sum1 =0
for i in alist:
n_i=i*100
for o in alist:
n_o = o*10
for p in alist:
num1 = n_i+n_o+p
if i != o and i != p and o != p:
print(num1)
num.append(num1)
for i in num:
sum1 += i
print("个数:"+str(len(num)))
print(sum1)
#135,137,153,157,173,175
#315,317,351,357,371,375
#513,517,531,537,571,573
#713,715,731,735,751,753
\ No newline at end of file
95,92,94
import csv
data = [95,92,94]
with open("scores.csv","w") as csvfile:
writer = csv.writer(csvfile)
writer.writerow(data)
\ 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