Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

python_shell / pythonworkspace

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • pythonworkspace
  • study04
  • dateope.py
  • 王欣伟's avatar
    首次提交脚本文件 · 0462a911
    王欣伟 committed Jul 20, 2023
    0462a911 Browse Files
dateope.py 361 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
from datetime import datetime

dt = datetime(2022,1,12,11,11,12)
dtstr = dt.strftime('"%Y-%m-%d %H:%M:%S"')
print("dt value:%s" %dtstr)


dataMapper = {}
dataList = []
dataMapper["jim"]=dataList
print(dataMapper)

dataList.append("higer:170")
dataList.append("size:78")

print(dataMapper)


loopIndex = 7
rowprefix = 'C'
curname = f'C{loopIndex}'
print(curname)