```
import os
print("Process (%s) is start..." %os.getpid())
pid = os.fork()
print('pid: {}'.format(pid))
if pid == 0: print('I am child process (%s) ... ...
分类:
编程语言 时间:
2018-07-06 15:53:26
阅读次数:
123
字符串拼接 用%s 可以放任何值,也可以多次拼接 但一定要按照顺序填写 输出结果:i am lpt my hobby is football %d 代表整型数字 打印浮点数 即小数 用%f 默认保留六位 %.2f 保留两位 其中.代表小数点 2代表保留几位 如果想打印百分号 在字符串中加入%%即可打 ...
分类:
其他好文 时间:
2018-07-05 17:15:56
阅读次数:
182
Windows怎样安装Scrapy? pip install scrapy会报错 访问https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载并放到D盘 pip install D:\Twisted-18.4.0-cp36-cp36m-win_am ...
分类:
其他好文 时间:
2018-07-03 22:35:18
阅读次数:
186
五个元音字母+一个半元音字母 1.发字母本身音都是 元+辅+e 2.不发字母音基本都是辅音结尾或者两个相同字母 辅+元+辅;元+辅 开音节 闭音节 A [e?] mail;name;face [æ] am;back;can E [i:] be;me;we [e] get;hell;help I [a ...
分类:
其他好文 时间:
2018-07-02 01:16:44
阅读次数:
250
format字符串格式化,必须一一对应 取元组第一个 tpl = ‘i am {0[0]}’,format([1,2,3],[123]) python 中函数定义方法: def:定义函数的关键字 test:函数名 ():内科定义形参 ‘’文档描述,非必要,强烈建议添加 x+=1:泛指代码块或程序处理 ...
分类:
编程语言 时间:
2018-06-30 00:59:43
阅读次数:
174
Questions about UIUC and USC I am admitted to University of Illinois at Urbana-Champaign (UIUC) Professional MCS and University of Southern California ...
分类:
其他好文 时间:
2018-06-29 11:12:43
阅读次数:
178
我使用的是四博智联提供的WIFI探针 DT-06产品 1. 数据读取 可以直接通过串口即可读取数据,串口波特率设置为 115200,其它选项默认。 如果需要PC机测试,请使用杜邦线转接到USB-TTL设备上,然后安装相应驱动(附件中带了CP210X) 下载链接:http://bbs.doit.am/ ...
分类:
其他好文 时间:
2018-06-29 11:04:12
阅读次数:
449
git rm -r --cached .//清空缓存git add .//重新提交git commit -am "update .gitignore"git push origin master 重新提交一次就可以了. ...
分类:
其他好文 时间:
2018-06-29 01:10:04
阅读次数:
132
I am writing a python script from which I hope to call the Matlab anovan function. I have attempted a basic test of this feature on file test.txt. Thi ...
分类:
编程语言 时间:
2018-06-28 13:50:48
阅读次数:
509
题目一:输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。为简单起见,标垫符号和普通字母一样处理。例如输入字符串“I am a student.”,则输出“student. a am I ”. 解题思路:第一翻转句子中所有的字符。比如翻转“I am a student.”中所有的字符得 ...
分类:
其他好文 时间:
2018-06-22 13:48:34
阅读次数:
135