Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python_study
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rejenver
python_study
Commits
2441bd7b
Commit
2441bd7b
authored
6 years ago
by
rejenver
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
557d8979
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
창의소프트웨어입문 11/python11_20#2.py
+134
-0
134 additions, 0 deletions
창의소프트웨어입문 11/python11_20#2.py
with
134 additions
and
0 deletions
창의소프트웨어입문 11/python11_20#2.py
0 → 100644
+
134
−
0
View file @
2441bd7b
Python
3.7
.
1
(
v3
.
7.1
:
260
ec2c36a
,
Oct
20
2018
,
14
:
05
:
16
)
[
MSC
v
.
1915
32
bit
(
Intel
)]
on
win32
Type
"
help
"
,
"
copyright
"
,
"
credits
"
or
"
license()
"
for
more
information
.
>>>
a
=
([
1
,
2
,
4
],[
5
,
6
,
7
])
>>>
a
([
1
,
2
,
4
],
[
5
,
6
,
7
])
>>>
type
(
a
)
<
class
'
tuple
'
>
>>>
a
[
0
]
[
1
,
2
,
4
]
>>>
a
[
0
][
0
]
=
4
>>>
a
([
4
,
2
,
4
],
[
5
,
6
,
7
])
>>>
a
[
0
]
=
1
,
2
,
4
Traceback
(
most
recent
call
last
):
File
"
<pyshell#6>
"
,
line
1
,
in
<
module
>
a
[
0
]
=
1
,
2
,
4
TypeError
:
'
tuple
'
object
does
not
support
item
assignment
>>>
dic
=
{}
>>>
dic
[
'
파이썬
'
]
=
'
www.python.org
'
>>>
얓
Traceback
(
most
recent
call
last
):
File
"
<pyshell#9>
"
,
line
1
,
in
<
module
>
얓
NameError
:
name
'
얓
'
is
not
defined
>>>
dic
{
'
파이썬
'
:
'
www.python.org
'
}
>>>
type
(
dic
)
<
class
'
dict
'
>
>>>
dic
.
keys
()
dict_keys
([
'
파이썬
'
])
>>>
dic
.
values
()
dict_values
([
'
www.python.org
'
])
>>>
dic
.
items
()
dict_items
([(
'
파이썬
'
,
'
www.python.org
'
)])
>>>
'
파이썬
'
in
dic
.
keys
()
True
>>>
dic
.
pop
(
'
파이썬
'
)
'
www.python.org
'
>>>
얓
Traceback
(
most
recent
call
last
):
File
"
<pyshell#17>
"
,
line
1
,
in
<
module
>
얓
NameError
:
name
'
얓
'
is
not
defined
>>>
dic
{}
>>>
b
=
[(
2
,
3
,
4
),(
5
,
6
,
7
)]
>>>
b
[(
2
,
3
,
4
),
(
5
,
6
,
7
)]
>>>
b
[
0
][
0
]
=
3
Traceback
(
most
recent
call
last
):
File
"
<pyshell#21>
"
,
line
1
,
in
<
module
>
b
[
0
][
0
]
=
3
TypeError
:
'
tuple
'
object
does
not
support
item
assignment
>>>
b
[
0
]
=
4
>>>
b
[
4
,
(
5
,
6
,
7
)]
>>>
b
[
0
]
=
(
2
,
3
,
4
)
>>>
b
[(
2
,
3
,
4
),
(
5
,
6
,
7
)]
>>>
a
=
123456
>>>
a
&
1
0
>>>
a
&
2
0
>>>
a
&
3
0
>>>
a
&
0b11
0
>>>
a
&
0b11111111
64
>>>
a
&
255
64
>>>
a
//
255
484
>>>
a
%
255
36
>>>
=============
RESTART
:
C
:
/
Users
/
AJOU
/
Downloads
/
python11_20
#1.py =============
14
>>>
=============
RESTART
:
C
:
/
Users
/
AJOU
/
Downloads
/
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
>>>
=============
RESTART
:
C
:
/
Users
/
AJOU
/
Downloads
/
python11_20
#1.py =============
23232323
0b1011000100111111101000011
18
>>>
a
=
"
0
"
>>>
not
a
False
>>>
a
=
0
>>>
not
a
True
>>>
a
=
""
>>>
not
a
True
>>>
=============
RESTART
:
C
:
\
Users
\
AJOU
\
Downloads
\
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
수를
입력하세요
:
1
3
/
1
=
3.0
>>>
=============
RESTART
:
C
:
\
Users
\
AJOU
\
Downloads
\
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
수를
입력하세요
:
NDH
Traceback
(
most
recent
call
last
):
File
"
C:\Users\AJOU\Downloads\python11_20#1.py
"
,
line
10
,
in
<
module
>
a
=
int
(
input
())
ValueError
:
invalid
literal
for
int
()
with
base
10
:
'
NDH
'
>>>
=============
RESTART
:
C
:
\
Users
\
AJOU
\
Downloads
\
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
수를
입력하세요
:
100
Traceback
(
most
recent
call
last
):
File
"
C:\Users\AJOU\Downloads\python11_20#1.py
"
,
line
11
,
in
<
module
>
if
(
a
.
isnumeric
()):
AttributeError
:
'
int
'
object
has
no
attribute
'
isnumeric
'
>>>
=============
RESTART
:
C
:
\
Users
\
AJOU
\
Downloads
\
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
수를
입력하세요
:
100
Traceback
(
most
recent
call
last
):
File
"
C:\Users\AJOU\Downloads\python11_20#1.py
"
,
line
11
,
in
<
module
>
if
(
a
.
isnumeric
()):
AttributeError
:
'
int
'
object
has
no
attribute
'
isnumeric
'
>>>
=============
RESTART
:
C
:
\
Users
\
AJOU
\
Downloads
\
python11_20
#1.py =============
23232323
0b1011000100111111101000011
14
수를
입력하세요
:
NDH
숫자를
입력하세요
>>>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment