ABAQUS 二次开发Python教程

  • P2_419989
    了解作者
  • 172.7KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 04:46
    上传日期
ABAQUS的二次开发Python教程,教程包括语言和例子
python教程.rar
  • python
  • ch05s05.html
    1.3KB
  • ch04s04.html
    1.5KB
  • pr01s07.html
    1.5KB
  • ch03s07.html
    1.3KB
  • ch11s05.html
    3.3KB
  • apb.html
    2.2KB
  • ch07s05.html
    3.4KB
  • ch10s03.html
    1.8KB
  • ch02.html
    2.7KB
  • pr01s02.html
    2.4KB
  • ch07s08.html
    1.4KB
  • ch09s05.html
    6.1KB
  • ch15s05.html
    2.4KB
  • ch09s04.html
    5.9KB
  • ch02s03.html
    1.4KB
  • ch16s03.html
    1.5KB
  • pr01s06.html
    1.4KB
  • ch02s02.html
    2.4KB
  • ch13s02.html
    3.9KB
  • ch07.html
    3.4KB
  • ch16s02.html
    3.7KB
  • code
  • if.py
    578B
  • func_default.py
    137B
  • using_sys.py
    185B
  • using_name.py
    183B
  • func_doc.py
    318B
  • print_tuple.py
    172B
  • method.py
    204B
  • continue.py
    234B
  • mymodule.py
    148B
  • func_param.py
    247B
  • using_tuple.py
    390B
  • seq.py
    729B
  • finally.py
    283B
  • pickling.py
    460B
  • helloworld.py
    74B
  • lambda.py
    161B
  • inherit.py
    1.1KB
  • try_except.py
    312B
  • func_return.py
    138B
  • str_methods.py
    397B
  • reference.py
    650B
  • break.py
    178B
  • while.py
    478B
  • expression.py
    159B
  • using_file.py
    552B
  • backup_ver2.py
    1.1KB
  • simplestclass.py
    119B
  • cat.py
    851B
  • mymodule_demo.py
    129B
  • backup_ver1.py
    838B
  • list_comprehension.py
    133B
  • mymodule_demo2.py
    172B
  • var.py
    128B
  • func_global.py
    176B
  • backup_ver4.py
    1.4KB
  • backup_ver3.py
    1.3KB
  • using_dict.py
    649B
  • using_list.py
    646B
  • objvar.py
    1KB
  • function1.py
    161B
  • class_init.py
    279B
  • func_local.py
    161B
  • raising.py
    602B
  • func_key.py
    164B
  • ch06s03.html
    4.9KB
  • pr01s04.html
    1.3KB
  • apbs02.html
    1.6KB
  • ch09s08.html
    1.4KB
  • ch07s03.html
    4.5KB
  • ch10.html
    2.8KB
  • ch05.html
    2KB
  • ch09s03.html
    6.2KB
  • ch11s03.html
    2.5KB
  • ch07s06.html
    3.1KB
  • ch01s03.html
    2.6KB
  • ch03s02.html
    2.5KB
  • ch14s04.html
    1.4KB
  • ch09s06.html
    4KB
  • ch06s05.html
    3.5KB
  • ch04s02.html
    1.5KB
  • ch05s02.html
    4.7KB
  • ch15s07.html
    1.8KB
  • ch11s08.html
    1.4KB
  • ch15s03.html
    2.5KB
  • ch03s04.html
    3.8KB
  • ch04s10.html
    1.3KB
  • ch15s09.html
    1.5KB
  • ch08s04.html
    2.6KB
  • pr01s03.html
    1.5KB
  • ch03s03.html
    2.9KB
  • ch03s06.html
    2.4KB
  • ch04s06.html
    1.4KB
  • stylesheet
  • box.css
    437B
  • text.css
    878B
  • ch11s07.html
    7.8KB
  • ch01.html
    2.2KB
内容介绍
#!/usr/bin/env python # Filename: backup_ver4.py import os import time # 1. The files and directories to be backed up are specified in a list. source=['/home/swaroop/byte','/home/swaroop/bin'] # If you are using Windows, use source=[r'C:\Documents',r'D:\Work'] or something like that # 2. The backup must be stored in a main backup directory target_dir='/mnt/e/backup/' #Remember to change this to what you will be using # 3. The files are backed up into a zip file # 4. The current day is the name of the subdirectory in the main directory today=target_dir+time.strftime('%Y%m%d') # The current time is the name of the zip archive now=time.strftime('%H%M%S') # Take a comment from the user to create the name of the zip file comment=raw_input('Enter a comment --> ') if len(comment)==0: # check if a comment was entered target=today+os.sep+now+'.zip' else: target=today+os.sep+now+'_'+\ comment.replace(' ','_')+'.zip' # Notice the backslash! # Create the subdirectory if it isn't already there if not os.path.exists(today): os.mkdir(today) # make directory print 'Successfully created directory',today # 5. We use the zip command (in Unix/Linux) to put the files in a zip archive zip_command="zip -qr '%s' %s" %(target,' '.join(source)) # Run the backup if os.system(zip_command)==0: print 'Successful backup to',target else: print 'Backup FAILED'
评论
    相关推荐
    • Python
      Python Boto3代码
    • Python
      python程序
    • Python
      Python
    • python
      Python,就在这里。
    • Python
      Python-
    • Python
      完整的python 其中包含用于学习python的代码,注释和微型项目。
    • Python
      项目Python
    • Python
      Pythonpython3中使用乌龟库的简单pong游戏 贡献 拉请求是欢迎的! :) 执照
    • Python
      Python Dit是Mijn储存库van Python
    • python
      Python 基本的python编程