pimgeek / play Goto Github PK
View Code? Open in Web Editor NEW各种好玩的
各种好玩的
hello_world.json
你可以这么调试,但是这个PR我肯定不会合并
import decimal
arr = [[1,' a ', 3.0 ],[' 4?' ,5.112321E15, None]]
def isfloat(val):
try:
float(val)
return True
except:
return False
def isint(val):
try:
int(val)
return True
except:
return False
def mystr(val):
if (isfloat(val)):
return val
else:
return str(val)
def mystrip(val):
if (isint(val)):
return val
else:
return val.strip(' ?')
new_arr = []
for row in arr:
tmp1 = list(map(mystr, row))
tmp2 = list(map(mystrip, tmp1))
new_arr.append(tmp2)
print(new_arr)
主持人:Darwin Wu
引导词:In our daily life, all of us have been encountered with some kind of interpersonal conflicts. Some of them are small and easy to manage, while others are big & challenging, which might take our precious time and energy to deal with. Sometimes I wonder is there any way to totally avoid conflicts? Or, at least some way to turn big conficts into smaller ones?
In today's table topic session, we are going to talk about "conflicts", either in your family, your office, your college, or in public places... You can choose a type of question and we will do role playing games. I will be standing here to facilitate your role playing. Each of you will have about 2 minutes to express your ideas.
Now, before we start, let me make my point clear, there're no correct answers to these questions, just think over it and say something about it.
You had worked overtime for 2 days in line. Today your boss asked you to deliver a report before tomorrow morning, so you have to work overtime again. Your husband/wife is angry and speak to you (on the phone): "you never come back on time, which one is more important to you? work or me?!"
What would you reply?
You have just enjoyed an interesting short video on WeChat, and asked your partner to watch with you together, but your husband/wife behaves impatiently and replies: "Okay..okay! I've seen it. Totally nonsense! A waste of time. Could you leave me alone?"
What would you reply?
One day, you requested your husband/wife to clean the dishes right now, but he/she refused and said something like: "I've had enough of this! Don't you see I'm busy now? Could you give me more space?"
What would you reply?
You want to focus on your email writing, but your colleagues are talking aloud about gossip news and laughing, totally ignores your situation. You hope they could keep quiet.
What should your say?
You are a project manager, one your subordinates in your team misunderstood your requirement, when she/he deliver the wrong results, one week had passed. You felt very upset and said "You are so stuipd! how could you be wrong on such simple task?" But later you regretted doing so.
What would you say?
You are experienced in your project work, one day you need to collaborate with another new colleague, who wants to do it in her/his own way, but you are not sure whether his/her new way will work as smoothly as usual.
What would you do to ?
You are a project manager. One day you were required to submit a important project progress report by midnight that day. It had to be done with the help of your subordinate. But there was only 1 hours before the end of office hour.
What would you say to this subordinate?
You want to go to sleep at around 9:30pm, but your roomate keep playing computer game and produce lots of noise until midnight(with the overhead lights on), totally ignoring your needs. You feel annoyed and want to let your roommate know.
What would you say? And when would you say it?
You like keeping the dorm clean and neat. But one of your roommate often ignore others and drop trashs everywhere, but don't clean it for her/himself. You want to let the roommate pay more attention to her/his own duties.
What would you do to solve this problem?
You are standing in the end of a queue waiting to order railway ticket, but someone come here in a hurry and stand in front of you without any words.
In this case, what would you say to her/him?
You are having dinner with your friends in a restaurant, but there are children's laughter & crying noise from the nearby table. They even running around tables and make you disturbed.
What would you do in this situation?
# -*- coding:utf-8 -*-
#把程序直接放入表格所在的文件夹内,双击运行即可
import os,shutil
import xlrd
from xlwt import *
pathx=os.path.join('.','分割sheet后的表格').decode('utf-8') #处理后用于存放表格的文件夹
try:
shutil.rmtree(pathx) #删除同名文件夹
except WindowsError:
print "dir is not exist"
os.makedirs(pathx) #创建文件夹
dir=os.listdir('.') #获取当前目录下的所有文件
for i in dir:
if 'xls' in i[-4:]: #筛选以xls或xlsx为后缀的文件
filename=unicode(i,'gbk')
data=xlrd.open_workbook(filename) #打开文件
for q in range(len(data.sheets())):
w=Workbook(encoding='gbk') #定义新建表格文件的编码格式
a=data.sheet_by_index(q) #把第q个页的信息付给变量a
name=data.sheets()[q].name
nrows=a.nrows #行数
ncols=a.ncols #列数
ws=w.add_sheet(name) #给文件添加sheet页
for s in range(nrows): #遍历所有的单元格内容
for x in range(ncols):
number = a.cell(s,x).value
ws.write(s,x,p) #写入单元格内容
filename=name+'.xls'
w.save(filename)
shutil.move(filename,pathx)
关键字或内容标题
放于节点文字前用以加强区分度和观感
节点的注释描述
节点的类别属性,单个节点只能有一个类
节点的标签属性,单个节点可拥有多个标签
查看该节点的修改历史
节点与节点之间的关系
样式同节点历史
节点或联系下的图文页
节点或联系下的附件
内容聚合、鸟瞰功能、分组功能
节点关系图谱
显示该节点的所有关系节点和其父节点下所有同级子节点
显示该节点的所有下级节点、与其有跳转关系节点及该跳转节点的所有下级节点
显示所有节点与关系
显示从某节点到现所在节点的路径及现所在节点的子节点与联想节点
显示某一类(层)的节点
采用浏览器的多页面样式
输出内容界面,参考现有的非编系统
序号 调号 以 C 调为准的升(降)
1 C 无需升降
2 G (#)4
3 D (#)4,(#)1
4 A (#)4,(#)1,(#)5
5 E (#)4,(#)1,(#)5,(#)2
6 B (#)4,(#)1,(#)5,(#)2,(#)6
7 ♯F (#)4,(#)1,(#)5,(#)2,(#)6,(#)3
8 ♯C (#)4,(#)1,(#)5,(#)2,(#)6,(#)3,(#)7
9 F (b)7
10 ♭B (b)7,(b)3
11 ♭E (b)7,(b)3,(b)6
12 ♭A (b)7,(b)3,(b)6,(b)2
13 ♭D (b)7,(b)3,(b)6,(b)2,(b)5
14 ♭G (b)7,(b)3,(b)6,(b)2,(b)5,(b)1
15 ♭C (b)7,(b)3,(b)6,(b)2,(b)5,(b)1,(b)4
#
(G 大调),就检查所有的 fa 是否带(#)b
(F 大调),就检查所有的 xi 是否带(b)bb
(bB大调),就检查所有的 mi 和 xi 是否带(b)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.