硬件条件:ThinkpadP52 1T+1Tssd+2T OS:windows10+Ubuntu20.04(先安装windows再安装Ubuntu) Geant4 安装 软体下载 https://geant4.web.cern.ch/support/download 安装到/jianghp/gean ...
                            
                            
                                分类:
其他好文   时间:
2021-06-17 16:38:52   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    四种格式的解析: filelist slicelist download.cfg third_party_download.cfg 还是2个文件。替换之前版本即可。 初步测试正常,但时间轴不对。 代码如下: # -*- coding: UTF-8 -*- import os import io im ...
                            
                            
                                分类:
其他好文   时间:
2021-06-16 17:41:38   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    配置项 为了方便的图片的保存与展示,可以在 配置文件中,指明 图片资源的路径 1 import os 2 ? 3 ? 4 class Config(object): 5 DEBUG = True 6 SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@127. ...
                            
                            
                                分类:
其他好文   时间:
2021-06-15 18:16:21   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    为某些原因,需要读取d.lib后缀的文件, os.listdir() 语法:os.listdir(path) 函数用途:输出路径下所有文件的文件名 import os path = "E:/vs_code/qtVideo/lib" datanames = os.listdir(path) for i ...
                            
                            
                                分类:
编程语言   时间:
2021-06-13 10:37:18   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    冲刺任务:完成用户注册功能和数据库类 RegisterActivity.java package com.example.helloworld; import android.content.Intent; import android.os.Bundle; import android.text. ...
                            
                            
                                分类:
移动开发   时间:
2021-06-11 18:08:57   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    配置示例 # setting.py配置如下 ## 访问 http://IP/static/***.css STATIC_URL = '/static/' ## python manage.py collectstatic时,把所有静态文件聚集到此目录下 STATIC_ROOT = os.path.j ...
                            
                            
                                分类:
其他好文   时间:
2021-06-10 17:37:06   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                #encoding=utf-8 import pandas as pd import os import csv def concat_csv(filename,dirpath): with open(filename,'w') as f: cw=csv.writer(f) cw.writerow( ...
                            
                            
                                分类:
其他好文   时间:
2021-06-09 15:30:20   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                Prerequisites: Node OS IP k8s-master CentOS7 192.168.137.161 k8s-node1 CentOS7 192.168.137.162 Now we have 2 working CentOS virtual machine, which can ...
                            
                            
                                分类:
其他好文   时间:
2021-06-08 23:40:34   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    import multiprocessing, time, os# def pro(name):# print('hello', name, time.ctime())## if __name__ == '__main__':# l = []# for t in range(4):# t = mul ...
                            
                            
                                分类:
系统相关   时间:
2021-06-08 23:20:39   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    @staticmethoddef unzip_file(failed_file): zip_file = zipfile.ZipFile(failed_file) print(zip_file) if os.path.isdir(failed_file[0:-20]): pass else: os. ...
                            
                            
                                分类:
编程语言   时间:
2021-06-07 20:42:48   
                                阅读次数:
0