将python3的代码区标识改为python,因为typora不能识别python3,同时改为python对高亮阅读并没有影响,而且python对其他markdown软件的兼容性更好。
This commit is contained in:
parent
e1bbd30d8e
commit
999bbae8c2
|
|
@ -107,7 +107,7 @@ public int[] twoSum(int[] nums, int target) {
|
||||||
|
|
||||||
Python:
|
Python:
|
||||||
|
|
||||||
```python3
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def twoSum(self, nums: List[int], target: int) -> List[int]:
|
def twoSum(self, nums: List[int], target: int) -> List[int]:
|
||||||
hashmap={}
|
hashmap={}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ class Solution {
|
||||||
```
|
```
|
||||||
|
|
||||||
Python:
|
Python:
|
||||||
```python3
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
|
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
|
||||||
result_set = set()
|
result_set = set()
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ class MyLinkedList {
|
||||||
```
|
```
|
||||||
|
|
||||||
Python:
|
Python:
|
||||||
```python3
|
```python
|
||||||
# 单链表
|
# 单链表
|
||||||
class Node:
|
class Node:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue