Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_7
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
cfbf4913
authored
Aug 03, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
bb513e07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
0 deletions
city.csv
jjj.py
yan shao an shi sha bi.py/wo shi sha bi.py
city.csv
0 → 100644
View file @
cfbf4913
人,,,
jjj.py
0 → 100644
View file @
cfbf4913
def
gcd
(
a
,
b
):
i
=
1
c
=
0
if
a
<
b
:
while
i
==
a
:
if
a
%
i
==
0
and
b
%
i
==
0
:
c
=
i
i
=
i
+
1
else
:
i
=
i
+
1
print
(
c
)
elif
a
>
b
:
while
i
==
b
:
if
a
%
i
==
0
and
b
%
i
==
0
:
c
=
i
i
=
i
+
1
else
:
i
=
i
+
1
print
(
c
)
else
:
print
(
a
)
gcd
(
6
,
9
)
\ No newline at end of file
yan shao an shi sha bi.py/wo shi sha bi.py
0 → 100644
View file @
cfbf4913
# sum=0
# for i in range(1,10,3):
# sum=sum+i
# print(sum,i)
# s1="abcde"
# s2="fgh"
# s3=s1+s2
# s3=s3[4:7]
# print(s3)
# a=int("0b10000",10)
# b=int("16",10)
# c=int("0o020",10)
# d=int("0x10",10)
# print(b)
# s="www.baidu.com"
# b=s.split(".")
# print(b)
# i=1
# while i<=10:
# i+=1
# if i%2>0:
# continue
# print(i)
# character = ["诚实", "感恩", "坚持", "守时"]#,运行以下代码的结果是( )
# if not("怜悯" in character):
# character.append("怜悯")
# print(character[1] + character[-1])
# float('something')
# a=hex(1e)
# print(a)
# ls=['武汉','温州','香港','重庆']
# f=open('city.csv','w')
# f.write(','.join(ls)+'\n')
# f.close()
# print(f)
# a=divmod(36,10)
# print(a)
# def demo(x):
# return x*2;
# print(demo(demo(demo(1))))
# def domain2(a,b):
# a = a+b
# return a
# a = 2
# print(domain2(2,a))
# def sum(num1,num2):
# num1=num1+1
# num2=num2+2
# result=num1+num2
# return result
# a=3
# b=4
# c=sum(a,b)
# print("a=",a,"b=",b,"c=",c)
\ 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