Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson15-diy3
This project
Loading...
Sign in
Toggle navigation
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
a8de8b31
authored
Jun 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
576b5884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
sun.py
sun.py
0 → 100644
View file @
a8de8b31
# a=int(input("写入一个整数"))
# b=int(input("写入一个整数"))
# print(a*b)
#
# 输入一个大于200的分钟时
# 输出(24时制)的时间,比如:输入250,输出:4h10m
# a=int(input("输入一个大于200的分钟时"))
# b=a//60
# c=a%60
# d=b//24
# b=b%24
# print(d,"t",b,"h",c,"m")
# 输入一位百位数
# 输出这个数的十位数
# a=int(input("输入一位百位数"))
# b=a//10
# b=b%10
# print(b)
# 共有30个头,88只脚。
# 求笼中鸡兔各有多少只?
# for a in range(1,31):
# for b in range(1,31):
# if a+b==30 and 2*a+4*b==88:
# print(a,b)
# f=open(r'F:\mot.txt','a+')
# print("命运是靠自己掌握,而不是别人给予。",file=f)
# f.close()
#随意输入两个正数
#输出这个两个正数的积
#例如: 输入100分钟,
# 输出:1h40m
a
=
int
(
input
(
""
))
b
=
a
//
60
c
=
a
%
60
print
(
b
,
"h"
,
c
,
"m"
,
sep
=
''
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment