解决markdown编辑器代码显示难看的问题

很简单,只要在三个引号的右边加上你所用的语言就行。

原来的编写是:

	```
		def GAN():
    		max_seq_len = 4096
   		    score_template = 'TPR %(TPR)f\tFPR %(FPR)f\tAccuracy %(Accuracy)f\tAUC %(AUC)f'
    		dir_path = '../tensorflow_result/'
   		    if not os.path.exists(dir_path):
            	os.mkdir(dir_path)
    		timeTag = datetime.now().strftime('%Y-%m-%d')
    		dir_path = '../tensorflow_result/' + timeTag
	```

显示出来的是:

		def GAN():
    		max_seq_len = 4096
   		    score_template = 'TPR %(TPR)f\tFPR %(FPR)f\tAccuracy %(Accuracy)f\tAUC %(AUC)f'
    		dir_path = '../tensorflow_result/'
   		    if not os.path.exists(dir_path):
            	os.mkdir(dir_path)
    		timeTag = datetime.now().strftime('%Y-%m-%d')
    		dir_path = '../tensorflow_result/' + timeTag

修改后的编写是:

	```python
		def GAN():
    		max_seq_len = 4096
   		    score_template = 'TPR %(TPR)f\tFPR %(FPR)f\tAccuracy %(Accuracy)f\tAUC %(AUC)f'
    		dir_path = '../tensorflow_result/'
   		    if not os.path.exists(dir_path):
            	os.mkdir(dir_path)
    		timeTag = datetime.now().strftime('%Y-%m-%d')
    		dir_path = '../tensorflow_result/' + timeTag
	```

显示出来的是:

		def GAN():
    		max_seq_len = 4096
   		    score_template = 'TPR %(TPR)f\tFPR %(FPR)f\tAccuracy %(Accuracy)f\tAUC %(AUC)f'
    		dir_path = '../tensorflow_result/'
   		    if not os.path.exists(dir_path):
            	os.mkdir(dir_path)
    		timeTag = datetime.now().strftime('%Y-%m-%d')
    		dir_path = '../tensorflow_result/' + timeTag

你可能感兴趣的:(技术问题)