최대 1 분 소요

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

  1. ARP
  2. CDP / VLAN
  3. Frame Relay
  4. Static Routing
  5. VLAN
  6. VTP
  7. Routed Port
  8. AD
  9. Route Selection
  10. FHRP
  11. HSRP
  12. DHCP
  13. DNS
  14. STP
  15. NAT
  16. EtherChannel
  17. DTP
  18. RIP
  19. NTP
  20. Offset List
  21. Password Encryption
  22. ACL
  23. CAR Attack
  24. Broadcast
  25. Port Assignments
  26. IPv6 Static Routing
  27. HSRP for IPv6
  28. Clock Rate
  29. DHCPv6 Guard
  30. EIGRP
  31. Express Forwarding
  32. Routing and Switching
  33. Load Balancing
  34. Ping, Traceroute
  35. Load Balancing
  36. Fast Switching
  37. CEF
  38. DNS
  39. SSH
  40. Regular Expression
  41. OSPF
  42. EIGRP’s SIA
  43. NSSA

2. Linux

  1. rhel9’s docs
  2. Linux Directory Structure
  3. File Types in Linux
  4. fstab
  5. Vim Cheat Sheet
  6. Protecting GRUB with a password
  7. SELinux
  8. DNS
  9. Samba as a server
  10. DHCP
  11. NFS
  12. SSH
  13. VNC

3. Web

  1. HTML’s Elements
  2. Emmet
  3. JavaScript
  4. Anchor Tag
  5. Post, Get
  6. Block, Inline Elements
  7. Semantic Web
  8. Semantic Elements
  9. CSS
  10. Viewport_meta_tag
  11. Media_queries
  12. JavaScript

4. DB

  1. MySQL

클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)

댓글남기기