-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
62 lines (45 loc) · 1.2 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# from math import *
# print("HEeeeeeee2222222222el")
# print(ceil(3.9))
# num1 = float(input("ENTER FIRST NUMBER: "))
# op = input("ENTER OPERATOR :")
# num2 = float(input("ENTER SECOND NUMBER: "))
# if op == "+":
# print(num1+num2)
# elif op == '-':
# print(num1-num2)
# from xmlrpc import client
# server_url = 'http://161.35.52.86:8069'
# db_name = 'transTeg_Dev'
# username = 'admin@gmail.com'
# password = 'admin'
# common = client.ServerProxy('%s/xmlrpc/2/common' % server_url)
# user_id = common.authenticate(db_name, username, password, {})
# if user_id:
# print("Success: User id is", user_id)
# else:
# print("Failed: wrong credentials")
import tkinter as tk
import _tkinter
import turtle
from tkinter import *
import matplotlib.pylot as plt
import numpy as np
a=turtle.Turtle()
a.getscreen().bgcolor("yellow")
a.penup()
a.goto(-200,100)
a.pendown()
a.speed(25)
def star(turtle,size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range(5):
turtle.forward(size)
star(turtle,size/3)
turtle.left(216)
turtle.end_fill()
star(a,360)
turtle.done()