일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- URI
- ExceptionHandler
- RecursionError: maximum recursion depth exceeded while calling a Python object
- Stock
- handleMethodsArgumentNotValid
- Creon
- Slack
- stock trading
- WebServer
- Version Control
- Rest
- spec
- Daishin Securities
- AWS
- Instance
- mime type
- EC2
- creon login
- pyinstaller
- Auto Login
- mongodb
- The Internet
- Web Crawler
- KOSDAQ
- python
- AESCipher
- automated system
- API
- header
- request param
- Today
- Total
목록Programming/Python (6)
Change the Better World
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Example 1: Input: s = "()" Output: true Example 2: Input: s = "()[]{}" Output: true Example 3: Input: s = "(]" Output: false class Solutio..
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Example 2: Input: strs = ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings. class Solution(object): def longestCommonPrefix(self, strs): resu..
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, which is simply X + II. The number 27 is written as XXVII, which is XX + V + II. Roman numerals are usually written largest to smallest from left to right. Howeve..
Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, 121 is a palindrome while 123 is not. flag = False x = str(x) if len(x) == 1: return True for i in range(len(x)//2): if x[i] == x[-i - 1]: flag = True else: flag = False break return flag
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ t = ta..
xxxx.py대신 xxxx.spec 열어 붉은색 부분 추가후, pyinstaller xxxx.spec로 실행. xxxx.spec 내용 # -*- mode: python ; coding: utf-8 -*- import sys sys.setrecursionlimit(5000) block_cipher = None