摘要:
>>> ",".join(["a", "b", "c"])'a,b,c' 阅读全文
posted @ 2017-06-21 15:31
2021年的顺遂平安君
阅读(39)
评论(0)
推荐(0)
摘要:
```
>>> ",".join(["a", "b", "c"])
'a,b,c'
``` 阅读全文
posted @ 2017-06-21 15:31
2021年的顺遂平安君
阅读(135)
评论(0)
推荐(0)
摘要:
```
# import itertools
#
# my_list = [1, 2, 3, 4, 5, 6]
#
# combinations = itertools.combinations(my_list, 3)
# permutations = itertools.permutations(my_list, 3) import itertools word = 'sample'
my_... 阅读全文
posted @ 2017-06-21 15:29
2021年的顺遂平安君
阅读(177)
评论(0)
推荐(0)
摘要:
# import itertools## my_list = [1, 2, 3, 4, 5, 6]## combinations = itertools.combinations(my_list, 3)# permutations = itertools.... 阅读全文
posted @ 2017-06-21 15:29
2021年的顺遂平安君
阅读(53)
评论(0)
推荐(0)
摘要:
import timeef_cache = {}def expensive_func(num): if num in ef_cache: return ef_cache[num] print ("Computing {}...".... 阅读全文
posted @ 2017-06-21 15:04
2021年的顺遂平安君
阅读(59)
评论(0)
推荐(0)
摘要:
```
import time ef_cache = {} def expensive_func(num): if num in ef_cache: return ef_cache[num] print ("Computing {}...".format(num)) time.sleep(1) result = num*num ef_c... 阅读全文
posted @ 2017-06-21 15:04
2021年的顺遂平安君
阅读(153)
评论(0)
推荐(0)
摘要:
``` employees = ['Corey', 'John', 'Rick', 'Steve', 'Carl', 'Adam'] output = '\n' for employee in employees: output += '\t{}>/li>\n'.format(employee) print ('Address of output is {}'.format(i... 阅读全文
posted @ 2017-06-21 14:56
2021年的顺遂平安君
阅读(124)
评论(0)
推荐(0)
摘要:
employees = ['Corey', 'John', 'Rick', 'Steve', 'Carl', 'Adam']output = '\n'for employee in employees: output += '\t{}>/li>\n'... 阅读全文
posted @ 2017-06-21 14:56
2021年的顺遂平安君
阅读(40)
评论(0)
推荐(0)
摘要:
import sqlite3from employee import Employeeconn = sqlite3.connect(':memory:') #for testingc = conn.cursor()c.execute("""CREATE T... 阅读全文
posted @ 2017-06-21 14:42
2021年的顺遂平安君
阅读(68)
评论(0)
推荐(0)
摘要:
```
import sqlite3
from employee import Employee conn = sqlite3.connect(':memory:') #for testing c = conn.cursor() c.execute("""CREATE TABLE employees( first text, last tex... 阅读全文
posted @ 2017-06-21 14:42
2021年的顺遂平安君
阅读(173)
评论(0)
推荐(0)
摘要:
file settings colors&fonts save as (save the current scheme as your own) font change size 阅读全文
posted @ 2017-06-21 13:22
2021年的顺遂平安君
阅读(222)
评论(0)
推荐(0)
摘要:
file->settings->colors&fonts-> save as (save the current scheme as your own)-> font- >change size 阅读全文
posted @ 2017-06-21 13:22
2021年的顺遂平安君
阅读(64)
评论(0)
推荐(0)
摘要:
{"shell_cmd" : "gcc $file_name -o ${file_base_name}","working_dir" : "$file_path","variants": [ { "name": "Run", "... 阅读全文
posted @ 2017-06-21 11:17
2021年的顺遂平安君
阅读(72)
评论(0)
推荐(0)
摘要:
保存为`~/.config/sublime text 3/Packages/User/GCC.sublime build` 阅读全文
posted @ 2017-06-21 11:17
2021年的顺遂平安君
阅读(1166)
评论(0)
推荐(0)
浙公网安备 33010602011771号