Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5257662

Browse files
committed
Adicionado exemplo inicial de programação orientada a objetos em Python.
1 parente952232 commit5257662

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎classes-objects.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python
2+
3+
# Python Classes and Objects
4+
5+
# Python is an object oriented programming language.
6+
# Almost everything in Python is an object, with its properties and methods.
7+
# A Class is like an object constructor, or a "blueprint" for creating objects.
8+
9+
# To create a class, use the keyword class:
10+
classMyClass:
11+
x=5
12+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp