Compare commits
10 Commits
088d603607
...
a593761b2d
Author | SHA1 | Date | |
---|---|---|---|
a593761b2d | |||
83f2bd5d5d | |||
d6c6b781d5 | |||
8fc8c48ff3 | |||
e699ebf017 | |||
5bc4e53553 | |||
5a45ee6aab | |||
75dfd6babb | |||
cf05396f70 | |||
c83fb46d2f |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
__pycache__/
|
||||
.pyc
|
||||
.env
|
||||
.key
|
14
main.py
14
main.py
@ -1,7 +1,7 @@
|
||||
#Test While else
|
||||
x = 0
|
||||
while x < 10:
|
||||
print(x)
|
||||
x += 1
|
||||
else:
|
||||
print("Bye")
|
||||
import mymodule as m
|
||||
x = m.gtime()
|
||||
print(x.year)
|
||||
print(type(x))
|
||||
print(x.strftime("%A"))
|
||||
y = m.mdate(2022, 11, 30)
|
||||
print(y)
|
||||
|
5
mymodule.py
Normal file
5
mymodule.py
Normal file
@ -0,0 +1,5 @@
|
||||
from datetime import datetime as dt
|
||||
def gtime():
|
||||
return dt.now()
|
||||
def mdate(y, mo, d):
|
||||
return dt(y, mo, d)
|
Loading…
x
Reference in New Issue
Block a user