Skip to content

Instantly share code, notes, and snippets.

View JIElite's full-sized avatar
😹

Jie-Han Chen JIElite

😹
View GitHub Profile
鋼筋混凝土造 839129
見其他登記事項 72403
加強磚造 61893
鋼筋混凝土構造 23041
見其它登記事項 15936
鋼筋混凝土加強磚造 15666
鋼骨鋼筋混凝土造 13623
nan 12699
鋼筋混凝土 7046
磚造 3425
0 鋼筋混凝土造
1 加強磚造
2 見其他登記事項
3 鋼骨鋼筋混凝土造
4 磚造
5 木造
7 鋼筋混凝土加強磚造
8 見其它登記事項
9 土造
10 鋼筋混凝土構造
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
一般事務
一般工
一般廠
一般廠
一般旅
一般服務
一般服務業
一般服務業
中央監控
主要用途:保齡球
一般服務業,一般事務
人行空間、店
人行道 店
人行道、店
人行道、店
人行道、廠
人行道、托兒
人行道、補習
人行道,店
人行道.店
class Solution:
def calculate(self, s: str) -> int:
stack = []
operand = 0
res = 0 # For the on-going result
sign = 1 # 1 means positive, -1 means negative
for ch in s:
if ch.isdigit():
import pprint
import types
class Node(types.SimpleNamespace):
def __init__(self, val=None, right=None, left=None):
self.val = val
self.right = right
self.left = left
import pprint
def repr(self):
keys = [attr for attr in dir(self) if attr[0] != '_']
objs = {key:getattr(self, key) for key in keys}
objs['self'] = f'{self.__class__.__name__}({self.val}): 0x{id(self):x}'
return pprint.pformat(objs, depth=2)
def Fib(index):
if index == 0 or index == 1:
return 1
else:
return _Fibo(1, 1, index)
# Tail recursive version Fibonacci
def _Fibo(a, b, index):
if index == 2: # 終止條件由於 index 由上往下扣,扣到 index 2 的時候,回傳 Fib(1, 1, 2) = 2
return a+b
for line in fd:
words = []
if line:
# 這邊就可以照您說的方法做
tmp = ""
for c in line:
if 'a'<= c <='z':
tmp = tmp + c
elif tmp:
words.append(tmp)