Commit 9cd2113a by BellCodeEditor

auto save

parent 604d2b21
Showing with 17 additions and 0 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
...@@ -8,3 +8,11 @@ def new_input(): ...@@ -8,3 +8,11 @@ def new_input():
total.append(unit) total.append(unit)
print(total) print(total)
new_input() new_input()
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