[KEDUIT] 클라우드 컴퓨팅과 보안솔루션을 활용한 DC 엔지니어 양성교육 - Day51
1. 서론
오늘은 파이썬에 대하여 배워보았다.
2. 본론
1. Front-End
# 1. Calculator
a = int(input("a = "))
b = int(input("b = "))
result = a - b
print(a,"-",b,"=",result)
result = a * b
print(a,"x",b,"=",result)
result = a / b
print(a,"/",b,"=",result)
result = a % b
print(a,"%",b,"=",result)
result = a // b
print(a,"//",b,"=",result)
# 2. turtle
import turtle
import random
def screenLeftClick(x,y) :
global r, g, b
t.pencolor((r,g,b))
t.pendown()
t.goto(x,y)
def screenRightClick(x,y) :
t.penup()
t.goto(x,y)
def screenMiddleClick(x,y) :
global r, g, b
tSize = rd.randrange(1, 10)
t.shapesize(tSize)
r = rd.random()
g = rd.random()
b = rd.random()
t.pencolor((r,g,b))
t = turtle.Turtle()
rd = random.Random()
pSize, tSize = 10, 0
r, g, b = 0.0, 0.0, 0.0
t.shape('turtle')
t.pensize(pSize)
turtle.title('움직여라 김거북')
turtle.onscreenclick(screenLeftClick, 1)
turtle.onscreenclick(screenMiddleClick, 2)
turtle.onscreenclick(screenRightClick, 3)
turtle.exitonclick()
# 3. print with formatting
print("%d" % 123)
print("%5d" % 123)
print("%05d" % 123)
print("%f" % 123.45)
print("%7.1f" % 123.45)
print("%7.3f" % 123.45)
print("%s" % "Python")
print("%10s" % "Python")
print("{2:d} {1:d} {0:d}".format(100, 200, 300))
print("한 행입니다. \n또 한행입니다.")
# 4. print type
boolVar = False
intVar = 100
floatVar = 123.45
strVar = ""
print(type(boolVar))
print(type(intVar))
print(type(floatVar))
print(type(strVar))
strVar = 250
print(type(strVar))
3. 결론
피곤하다.
4. 참고자료
1. Cisco Docs
- ARP
- CDP / VLAN
- Frame Relay
- Static Routing
- VLAN
- VTP
- Routed Port
- AD
- Route Selection
- FHRP
- HSRP
- DHCP
- DNS
- STP
- NAT
- EtherChannel
- DTP
- RIP
- NTP
- Offset List
- Password Encryption
- ACL
- CAR Attack
- Broadcast
- Port Assignments
- IPv6 Static Routing
- HSRP for IPv6
- Clock Rate
- DHCPv6 Guard
- EIGRP
- Express Forwarding
- Routing and Switching
- Load Balancing
- Ping, Traceroute
- Load Balancing
- Fast Switching
- CEF
- DNS
- SSH
- Regular Expression
- OSPF
- EIGRP’s SIA
- NSSA
2. Linux
- rhel9’s docs
- Linux Directory Structure
- File Types in Linux
- fstab
- Vim Cheat Sheet
- Protecting GRUB with a password
- SELinux
- DNS
- Samba as a server
- DHCP
- NFS
- SSH
- VNC
3. Web
- HTML’s Elements
- Emmet
- JavaScript
- Anchor Tag
- Post, Get
- Block, Inline Elements
- Semantic Web
- Semantic Elements
- CSS
- Viewport_meta_tag
- Media_queries
- JavaScript
4. DB
클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)
댓글남기기