能推荐一下哪家比较靠谱的吗?
IF(AND(T101<>0,R101>AB101,U101=0,J100>-0.03,J100<0.03),AE101/T101-1-0.0006,0)
IF(AND(T101<>0,Q101>AB101,S101<>0,J100>-0.03,J100<0.03,Q101>R101),S101/T101-1-0.0006,0)
E - Open; AB - Open
IFERROR(IF(AND($S23<>0,$T23<>0,Q23>R23,R23<AB23,Q23/R23-1>0.002,R23>N22),$S23/$T23-1-0.0006,0)*2,0)
IFERROR(IF(AND($S23=0,$T23<>0,R23<AB23,R23>N22),$AE23/$T23-1-0.0006,0)*2,0)
E - Open; AB - Open
http://qt.gtimg.cn/r=0.9392363841179758&q=sh000043
http://qt.gtimg.cn/r=0.9392363841179758&q=sh000043
CU
=E22/E21-1
=INDEX(LINEST(F12:F21,A$1:A$10^{1,2,3}),1,2)
=INDEX(LINEST(F12:F21,A$1:A$10^{1,2,3}),1,1)
=CORREL(F12:F21,A$1:A$10)
=CORREL(F16:F21,A$5:A$10)
=D21/E21-1
=E21/D21-1
=N21-M21
=AVERAGE(M2:M21)
=B21*(1+O20/3)
=Q21
=IF(AND(R21<$C21,R21>$D21),R21,0)
=IF(AND(S21<>0,O20>N20,ABS(G20)<0.01,I20<I19,I20<0,J20>0,OR(K20>-0.75,L20>-0.75)),E21/S21-1,0)*4
=IF(AND(Q22<Q21,T21=0,S22<>0,ABS(G21)<0.01,K21<K20,K21>0,K21<0.95),E22/S22-1,0)*4
=IF(U22<>0,U22,T22)
ASCII-Plotter
import aplotter, math
print(’****** Sin([0,2pi]) ***’)
scale=0.1
n=int(2math.pi/scale)
plotx=[scalei for i in xrange(n)]
ploty=[math.sin(scalei) for i in xrange(n)]
aplotter.plot(plotx,ploty)
print(’****** Some discrete data sequence ******’)
data=[ord(c) for c in ‘ASCII Plotter example’]
aplotter.plot(data)
****** Sin([0,2pi]) ******
|
+1 -------
| ---- —
| - \\
| /// \
| / \
| // \
| / \
| / \
—+//---------------------------------------------------------------------±–
+0 \ +6.1
| \ *
| \\ /
| \ ///
| \ /
| \\ //
| - ///
| ---- —
-1 ------
|
https://gist.github.com/yuwash/6134540
self.calc_tax_button.clicked.connect(self.CalculateTax)
def CalculateTax(self):
price = int(self.price_box.toPlainText())
tax = (self.tax_rate.value())
total_price = price + ((tax / 100) * price)
total_price_string = "The total price with tax is: " + str(total_price)
self.results_window.setText(total_price_string)
======================================================================
from PySide import QtCore,QtGui
import sys, random
#inherit from Qthread and setup our own thread class
class upateThread(QtCore.QThread):
progress = QtCore.Signal(str) #create a custom sygnal we can subscribe to to emit update commands
def init(self,parent=None):
super(upateThread,self).init(parent)
self.exiting = False
def run(self):
while True:
self.msleep(10)
self.progress.emit(str(random.randint(0,100)))
class myDialog(QtGui.QDialog):
def init(self,parent=None):
super(myDialog,self).init(parent)
self.resize(200,0)
self.qlabel = QtGui.QLabel(self)
self.qlabel.setText(‘Processor:’)
self.qlabelSt = QtGui.QLabel(self)
self.btn = QtGui.QToolButton(self)
l = QtGui.QVBoxLayout(self)
l.addWidget(self.qlabel)
l.addWidget(self.qlabelSt)
l.addWidget(self.btn)
self.btn.pressed.connect(lambda :self.qlabelSt.setText(str(random.randint(0,100))))
self.setupUpdateThread()
def updateText(self,text):
self.qlabel.setText('random number: '+text)
def setupUpdateThread(self):
self.updateThread = upateThread()
#connect our update functoin to the progress signal of the update thread
self.updateThread.progress.connect(self.updateText,QtCore.Qt.QueuedConnection)
if not self.updateThread.isRunning():#if the thread has not been started let’s kick it off
self.updateThread.start()
if name == ‘main’:
app = QtGui.QApplication(sys.argv)
win = myDialog()
win.show()
sys.exit(app.exec_())
================================================================
import poplib
from email import parser
pop_conn = poplib.POP3_SSL(‘pop.gmail.com’)
pop_conn.user(‘username’)
pop_conn.pass_(‘password’)
#Get messages from server:
messages = [pop_conn.retr(i) for i in range(1, len(pop_conn.list()[1]) + 1)]
Concat message pieces:
messages = ["\n".join(mssg[1]) for mssg in messages]
#Parse message intom an email object:
messages = [parser.Parser().parsestr(mssg) for mssg in messages]
for message in messages:
print message[‘subject’]
pop_conn.quit()
==================================================================
=E2/F2-1
=F2/D2-1
=CORREL(LN(F2:F11),A$2:A$11)