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
장범진
python.study
Commits
30e3501c
Commit
30e3501c
authored
6 years ago
by
장범진
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
80807238
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptyhon.py
+119
-0
119 additions, 0 deletions
ptyhon.py
with
119 additions
and
0 deletions
ptyhon.py
0 → 100644
+
119
−
0
View file @
30e3501c
Python
3.7
.
0
(
v3
.
7.0
:
1
bf9cc5093
,
Jun
27
2018
,
04
:
59
:
51
)
[
MSC
v
.
1914
64
bit
(
AMD64
)]
on
win32
Type
"
copyright
"
,
"
credits
"
or
"
license()
"
for
more
information
.
>>>
a
[
1
]
=
(
4
,
5
,
6
)
Traceback
(
most
recent
call
last
):
File
"
<pyshell#0>
"
,
line
1
,
in
<
module
>
a
[
1
]
=
(
4
,
5
,
6
)
NameError
:
name
'
a
'
is
not
defined
>>>
a
[
1
]
=
(
4
,
5
,
6
)
Traceback
(
most
recent
call
last
):
File
"
<pyshell#1>
"
,
line
1
,
in
<
module
>
a
[
1
]
=
(
4
,
5
,
6
)
NameError
:
name
'
a
'
is
not
defined
>>>
a
=
(
1
,
2
,
3
)
>>>
a
(
1
,
2
,
3
)
>>>
a
.
append
(
4
,
5
,
6
)
Traceback
(
most
recent
call
last
):
File
"
<pyshell#4>
"
,
line
1
,
in
<
module
>
a
.
append
(
4
,
5
,
6
)
AttributeError
:
'
tuple
'
object
has
no
attribute
'
append
'
>>>
a
.
append
(
4
)
Traceback
(
most
recent
call
last
):
File
"
<pyshell#5>
"
,
line
1
,
in
<
module
>
a
.
append
(
4
)
AttributeError
:
'
tuple
'
object
has
no
attribute
'
append
'
>>>
a
[
0
]
1
>>>
a
[:
2
]
(
1
,
2
)
>>>
a
[
2
:]
(
3
,)
>>>
a
[
0
]
=
[
1
,
2
,
3
]
Traceback
(
most
recent
call
last
):
File
"
<pyshell#9>
"
,
line
1
,
in
<
module
>
a
[
0
]
=
[
1
,
2
,
3
]
TypeError
:
'
tuple
'
object
does
not
support
item
assignment
>>>
a
(
1
,
2
,
3
)
>>>
a
=
[
1
,
2
,
3
]
>>>
a
.
append
(
4
)
>>>
a
.
append
(
5
,
6
)
Traceback
(
most
recent
call
last
):
File
"
<pyshell#13>
"
,
line
1
,
in
<
module
>
a
.
append
(
5
,
6
)
TypeError
:
append
()
takes
exactly
one
argument
(
2
given
)
>>>
a
[
1
,
2
,
3
,
4
]
>>>
b
=
([
1
,
2
,
3
],[
4
,
5
,
6
])
>>>
b
[
0
][
0
]
=
4
>>>
b
([
4
,
2
,
3
],
[
4
,
5
,
6
])
>>>
a
=
123456
>>>
a
&
1
0
>>>
a
|
1
123457
>>>
a
&&
1
SyntaxError
:
invalid
syntax
>>>
a
|
1
123457
>>>
type
(
b
)
<
class
'
tuple
'
>
>>>
type
(
a
)
<
class
'
int
'
>
>>>
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
/
Desktop
/
r
.
py
====================
23232321
0b1011000100111111101000001
13
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232321
0b1011000100111111101000001
0x1627f41
0o130477501
13
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232321
0b1011000100111111101000001
0x1627f41
0o130477501
13
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232321
0b1011000100111111101000001
0x1627f41
0o130477501
13
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232321
0b1011000100111111101000001
0x1627f41
0o130477501
13
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
2323232
0b1000110111001100100000
0x237320
0o10671440
9
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
232323223
0b1101110110001111100010010111
0xdd8f897
0o1566174227
17
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232323
0b1011000100111111101000011
0x1627f43
0o130477503
14
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232323
0b1011000100111111101000011
0x1627f43
0o130477503
14
>>>
====================
RESTART
:
C
:
/
Users
/
AJOU
/
Desktop
/
r
.
py
====================
23232323
0b1011000100111111101000011
0x1627f43
0o130477503
18
>>>
a
=
3
>
2
>>>
a
True
>>>
a
=
3
<
2
>>>
a
False
>>>
type
(
a
)
<
class
'
bool
'
>
>>>
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