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
|
import mymodule as m
|
||||||
x = 0
|
x = m.gtime()
|
||||||
while x < 10:
|
print(x.year)
|
||||||
print(x)
|
print(type(x))
|
||||||
x += 1
|
print(x.strftime("%A"))
|
||||||
else:
|
y = m.mdate(2022, 11, 30)
|
||||||
print("Bye")
|
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