Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.129 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.75; '*S*': 0.00; "','": 0.16; 'comma': 0.16; 'received:159': 0.16; 'separator,': 0.16; 'subject:howto': 0.16; 'subject:remove': 0.16; 'to:name:python-list': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'charset :us-ascii': 0.36; 'hi,': 0.36; 'received:209': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'remove': 0.60; 'such': 0.63; 'reply': 0.66; 'x-mailer:foxmail 6, 15, 201, 22 [cn]': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:x-mailer:mime-version :content-type; bh=VZPow4wINSew1hkSaj1LF5gB3KH6cxq3k9h7SUYMCNM=; b=D7KPkP3tV+FrJxgCK2OhT948QLfqx6/Zgxd1KZI4Kr+QNI+RiIbrGsCswW0BPnMWCz lP9BgHYezAAJxAmS5QnrnUKAmvZIK7p8rbXTgkcYxAUnbIc1CxTxVg2eDrREEIxCE74h mrsG0fNm/J3wkpfwJZg0hzrbUbyh+Cl/oNPs/sfdjflDDOT5FB6iVRc5xPWgmrFRJgN4 jOi3QwtVZtC0e512zL8dGOVzelgjf6SX4HQxvc1EaMmilQMCnoSHqm9cwE4olYcXRHTk cyYcTR7uExwk9iRG8jK508tXK/MkYTPmHZKy7MnJ2BB6kA1gYOIwRL5T5NU8C5TDDdaH mzRA== X-Received: by 10.66.184.14 with SMTP id eq14mr25333418pac.215.1365965858595; Sun, 14 Apr 2013 11:57:38 -0700 (PDT) Date: Mon, 15 Apr 2013 02:57:35 +0800 From: "pyth0n3r" To: "python-list" Subject: howto remove the thousand separator X-mailer: Foxmail 6, 15, 201, 22 [cn] Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon004843511314_=====" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365965868 news.xs4all.nl 2708 [2001:888:2000:d::a6]:47693 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43574 This is a multi-part message in MIME format. --=====003_Dragon004843511314_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!! Best, Chen --=====003_Dragon004843511314_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
Hi,
I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float().
How can i remove the comma in int data?
Any reply will be appreciated!!
 
Best,
Chen
 
--=====003_Dragon004843511314_=====--