Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson11_5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit f1645995 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 05e7d622
Show whitespace changes
Inline Side-by-side
Showing with 70 additions and 0 deletions
  • __pycache__/func.cpython-37.pyc
  • dd.py
  • func.py
  • score.py
__pycache__/func.cpython-37.pyc 0 → 100644
View file @ f1645995
File added
This diff is collapsed. Click to expand it.
dd.py 0 → 100644
View file @ f1645995
# """
# a=0 #adlsfjalsd
# if sk sdfas
# """
# print('''小明%
# 岁了''')
# __="kfkf"
# # # a=34
# # # # print(float(a))
# # # print(4 is 5)
# # # import turtle as t
# # # import random as r
# # # r.randint()
# # # if a==2:
# # # pass
# # for i in range(10):
# # if i==3:
# # print(i)
# # continue
# # for k in range(3):
# # if k==2:
# # print(k)
# # break
# # from turtle import Pen:
# # # Pen.pencolor()
# # print(not False or 2 and 5)
# # print(1 and 2 or 6 or not 5)
# print(9999//3600,9999%3600//60,9999%3600%60,sep=":")
# # import turtle
# # turtle.
# a=2032.45234
# print("我今年%08.2f岁了"%a)
# print('sdlj"fls"\ndf')
# a=[2,3,43,5,65]
# print(a[-1:-3:-1])
# print(type(3.5))
# a=int(float("3.4"))
# b=eval(input())
# # print(b)
# print(float(True))
a={'sk':3,'kk':4}
a['sk']=5
print(a)
\ No newline at end of file
This diff is collapsed. Click to expand it.
func.py 0 → 100644
View file @ f1645995
def kk():
t=[]
while True:
num=input("价格:")
if num=='q':
break
else:
try:
num=float(num)
except:
print("输入错误!")
else:
t.append(num)
return t
def sum(a):
qh=0
for i in a:
qh=qh+i
return qh
This diff is collapsed. Click to expand it.
score.py 0 → 100644
View file @ f1645995
import func
a=func.kk()
tt=func.sum(a)
print(tt)
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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