Commit 9cd2113a by BellCodeEditor

auto save

parent 604d2b21
Showing with 18 additions and 2 deletions
def zhishu(num):
for i in range(2,num//2+1):
if num%i==0:
return False
return True
for i in range(50,151):
if zhishu(i):
print(f"{i}是质数")
\ No newline at end of file
...@@ -7,4 +7,12 @@ def new_input(): ...@@ -7,4 +7,12 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
new_input() new_input()
\ No newline at end of file
def sum(money)
print()
import diy
data = func4.new_input()
score = func4.sum(data)
print("总分数为:"+str(score))
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